Archived topic
Problem with hooks
6 replies · Started by Juan Jose on August 26, 2020
I have a page and I want to insert a content block after main content, I try to put generate_after_main_content, and in display rules I put pages, all pages, but it doesn't show anything.



Hi there,
i can see the form - it is below the Comments container.
If you want it before the comments container then select the before_comments_container hook
What if there are no comments as I would?
then you would have to add it inside the main container using the after_content_hook
See here for where the hooks are:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
Thanks!
Resolved
You're welcome