Archived topic
Definition of Block Element
7 replies · Started by Ernst Wilhelm on October 14, 2020
I'd like to put a separator between the body/text of a blog post and post metadata like tags, categories. Hence I like the generatepress block elements a lot, I am trying to create one for this purpose. But I am struggeling to find the right hook. Can you povide some guidance?
Hi there,
maybe the after_entry_header hook is what you need.
You can see all the main template hooks here:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
David. Many thanks. If I read and understand the documentation correct, there is no hook which allows me to locate the sepatator exactly before any tag. Thats okay.
Thanks, Ernst Wilhelm
Are you referring to this spot here?
https://www.screencast.com/t/JcG2WiFwdS
If so the generate_after_content hook with priority 2 should work :)
Hi. Long time not answered. My apologies for that.
With respect to this screenshot https://www.screencast.com/t/JcG2WiFwdS there is a little bit confusion. What I want is the location of the green rectangle. The settings generate_after_content hook with priority 2 are pointing to the location of the explanatory text with orange background color. Not exactly the same :(
Sorry - try generate_after_entry_content with priority 2 instead.
Thanks Leo. That's it.
No problem :)