'before_post_content' hook for Genesis 2.0?

Community Forums Forums General Discussion 'before_post_content' hook for Genesis 2.0?

This topic is: not resolved

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  MarkAsacker 10 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #58788

    Kurt
    Participant
    Post count: 8

    I’ve tried using genesis_entry_header in the Simple Hooks plugin…. but it places my Ad above the Date/Posted-by meta information. (after the post title)

    Is there a way to put an ad within the content? After Date/Posted-By and before the actual content.

    #58811

    braddalton
    Participant
    Post count: 8850

    Add a third parameter for positioning priority.

    Please paste all the code for the add in Pastebin or Github Gists and leave a link here.

    I will put the code into a custom function for you with.

    Link to your site as well thanks.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #58832

    Kurt
    Participant
    Post count: 8

    Thanks for the reply.

    The question is more about how to use the right hook. (if it exists now with Genesis 2.0)

    Just using a standard image html tag to insert an image.

    I want the image to appear after(underneath) the “Date” and “Posted By” meta information after the post title. (before the content)

    I put the image code in genesis_entry_header hook with the Simple Hooks plugin active.

    The problem/issue is easy to reproduce.

    • This reply was modified 11 months ago by  Kurt.
    • This reply was modified 11 months ago by  Kurt.
    • This reply was modified 11 months ago by  Kurt.
    • This reply was modified 11 months ago by  Kurt.
    #58834

    Kurt
    Participant
    Post count: 8

    The edit/code is all messed up…. basically, I’m just trying to insert an image.

    #63050

    MarkAsacker
    Participant
    Post count: 13

    Hey Kurt,

    I see it’s been a few weeks since you’ve heard anything on your topic. Not sure if you’ve resolved the issue but in order to achieve what you’re looking for you’d want to enter you image code into the…

    “genesis_post_content” Hook in simple hooks.

    This will output the image under the Date, Time and Author but before your post content.

    If you haven’t already, you may want to install the Genesis visual hook guide plugin located here…

    http://wordpress.org/plugins/genesis-visual-hook-guide/

    It will help you immensely when trying to figure out which hook to use.

    Once you’ve installed, view a post in your browser. Hover over the “G Hook Guide” link in the admin bar and click “Action Hooks” to see all the Hooks on the page.

    Hope this helps.

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

You must be logged in to reply to this topic.