Archived topic
Hook Location - before comment container
5 replies · Started by Anna on January 9, 2019
Hi, I would like to add PHP code to the generate-before-comment-container hook location, however, it isn't in the GP hooks list. I could use the after content hook, however, I already have coding in that hook, and would rather split them up. How do I add PHP to the before comment container hook??
Thanks for your assistance!
Hi there,
that hook is included in the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Where do I find that on my dashboard??
I can get to GP Hooks, but where do I find Hook Element?
Go to Appearance > GeneratePress - and activate the Elements module.
This will replace the old headers and hooks modules. Any existing Page Headers or Hooks will be in Appearance > Elements under the Legacy Tabs. Do not deactivate the old Page Header or Hooks modules before you convert them to the new version.
Thanks, that's very helpful!!
You're welcome
