[Resolved] Hook Location – before comment container

Home Forums Support [Resolved] Hook Location – before comment container

Home Forums Support Hook Location – before comment container

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #777432
    Anna

    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!

    #777460
    David
    Staff
    Customer Support

    Hi there,

    that hook is included in the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    #777523
    Anna

    Where do I find that on my dashboard??
    I can get to GP Hooks, but where do I find Hook Element?

    #777638
    David
    Staff
    Customer Support

    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.

    #777857
    Anna

    Thanks, that’s very helpful!!

    #778018
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.