Archived topic
Easy way to add a block of text after every post, before the link to comments?
1 reply · Started by Nick on November 9, 2022
Hey -- I used to understand editing the code for Wordpress sites about a decade ago, but rejoining now after a long absence, I'm definitely not seeing things I was once familiar with!
I'd like to add a simple line that follows every post, something like, "If you enjoyed this post, please click here to follow..."
I know were I >used< to insert the code...but I'm extremely confused with Generate. Any help would be appreciated. And everything else is working perfectly!
Hi there,
I believe hooks are what you are looking for.
For example:
https://docs.generatepress.com/article/generate_after_comment_text/
Couple of modules for you to use the hooks:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/block-element-hook/
Let me know if this helps :)