Archived topic
Elements Locations?
3 replies · Started by surfing on December 13, 2021
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
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
Thanks! Just what I needed!
Glad to hear that!