Custom Hook for Single post

Community Forums Forums Design Tips and Tricks Custom Hook for Single post

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sridhar Katakam 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22140

    queenofsavings
    Participant

    I have content that I want to insert within each single post under the title. Before I had the Genesis framework I would have edited the single post.php file. I do not want this content to show on the main index page under each title, only when you are viewing a single post. I am using the luscious theme if that helps at all. Thanks.

    #22173

    Sridhar Katakam
    Participant
    Post count: 923

    1) Install and activate Genesis Simple Hooks plugin.

    2) Paste the following in “genesis_after_post_title” Hook:

    [php]
    <?php if(is_single()) { ?>
    Put your HTML here
    <?php } ?>
    [/php]

    Tick “Execute PHP on this hook?”


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.