[Support request] Custom Hook

Home Forums Support [Support request] Custom Hook

Home Forums Support Custom Hook

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #704028
    Paul

    Hi,

    I want to insert a line of HTML directly after the last paragraph on a post. I believe this should be possible using elements but can’t find a hook for this location (the after_content hook places the banner underneath author box and next post info. I want it directly under the final paragraph) Do I need to make a custom hook or is this kind of placement not possible?

    Thanks

    GP Premium 1.7.2
    #704097
    David
    Staff
    Customer Support

    Hi there,

    the generate_after_entry_content hook will add it before the entry-meta ( post nav and terms ). this Topic explains hook priority to move elements up the order:

    https://generatepress.com/forums/topic/hook-after-entry-content-and-before-entry-meta-in-post/#post-630419

    However it looks like your author box and shares are being filtered into the content. Which means they will appear above it. So if possible they should be hooked into the same hook.

    #704239
    Paul

    So if possible they should be hooked into the same hook.

    Not sure how to do this, they are inserted via plugins.

    #704247
    David
    Staff
    Customer Support

    Do the plugins provide an option to insert as a shortcode or PHP?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.