[Resolved] generate_after_entry_title hook not working

Home Forums Support generate_after_entry_title hook not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1490986
    Chris

    Hi,

    When I create a generate_after_entry_title hook in Elements with plain text in the content (or anything for that matter) and set the location to the ‘Entire Site’ and then press Publish, nothing is happening on any page of the website. If I change the hook to generate_before_content, the text appears as expected.

    I’ve tried disabling all the site plugins except GP Premium with the same result.

    Here are screenshots of the hook settings:
    https://ibb.co/RQpSRRJ
    https://ibb.co/5xGxD8j.

    Am I doing something wrong or is there a problem with the generate_after_entry_title hook?

    I’m running..
    WP Version 5.5.1
    GP Version 3.0.2
    GP Premium Version 1.12.2

    Thanks very much for your help.

    Chris

    #1491058
    Elvin
    Staff
    Customer Support

    Hi,

    I believe this will help you.
    https://docs.generatepress.com/article/hooks-visual-guide/

    You seem to be editing a static page. Please refer to the static page visual hooks image for hooks.

    For pages, I believe you can use generate_after_entry_header.

    By the way, I’ve checked your page and you’re not using the page title/header.

    I believe what you’re trying to do is make a shortcode execute under “Welcome to Park CP School!”?

    If so, you must place “Welcome to Park CP School!” as the page title, else the shortcode would just appear above the “Welcome to Park CP School!” text because it is currently added as part of the content rather than the page’s header/title.

    A wise man once said:
    "Have you cleared your cache?"

    #1491886
    Chris

    Hi Elvin,

    Brilliant. That was my problem.

    The visual hook guide is very useful. I’ll use it next time.

    Thank you very much for taking the time to identify my problem.

    Chris

    #1494694
    Elvin
    Staff
    Customer Support

    No problem. Always glad to be of any help. 🙂

    A wise man once said:
    "Have you cleared your cache?"

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