[Support request] Elements Locations?

Home Forums Support [Support request] Elements Locations?

Home Forums Support Elements Locations?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2047190
    surfing

    Hi,

    I want to add an element that will display on all posts, underneath the main post image and before the blog post text. How do I do this? I can’t seem to find the correct hook location. For example, “generate_before_main_content” puts the element too high. Is there a graphic or something showing the position of the elements? This would really be helpful. Selecting each one and refreshing is really tedious.

    Thanks

    #2047366
    David
    Staff
    Customer Support

    Hi there,

    you can see the hook locations here:

    https://docs.generatepress.com/article/hooks-visual-guide/#single-post

    In you case you should use: generate_after_entry_header and set the priority to 20

    #2048161
    surfing

    Thanks! Just what I needed!

    #2048379
    David
    Staff
    Customer Support

    Glad to hear that!

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