Archived topic
Adding text above the H1 heading in a post
7 replies · Started by Jodie on October 19, 2019
Hi Tom, David and Leo
Hope you are all well :)
Is there a way I add text above the H1 heading in my posts like you see here? https://cl.ly/289e44e4e636
As always I appreciate your help.
Cheers Jodie
Hi there,
you can use the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
You can see the hook positions here:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
Hi David
Thanks so much for your quick response. I will take a look at the links you sent through to learn how to do it.
Cheers
Jodie :)
You're welcome - let us know if you need assistance.
Hi David
So I tested the before_entry_title hook in Elements for my posts
Here is an example - https://contentedfish.com/red-devil-cichlid/
Is there any way to reduce the gap at the top of the hook placement?
Thanks so much
Cheers
Jodie
The gap comes from the Top Padding set in the Customizer > Layout > Container. Reduce that to reduce the space above the hooked content.
You rock David!!
Thanks so much for your help, I really do appreciate it.
I've gone and changed the padding and now I'm happy :)
Cheers
Jodie
Glad to be of help :)