[Resolved] “Legacy Hooks” not showing. Only “Legacy Headers”

Home Forums Support [Resolved] “Legacy Hooks” not showing. Only “Legacy Headers”

Home Forums Support “Legacy Hooks” not showing. Only “Legacy Headers”

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1476732
    Matthias

    Hi!
    I was looking checked out the video about migrating Hooks to Elements. As far as I understand, there should be a “Legacy Hooks” button in the top, but I only have the “Legacy Headers” button showing up. (I guess this doesn’t have the same content as the Hooks button as it doesn’t show content that I previously added to the old Hooks section (like Google Analytics code).
    Is there any way I can access the old Hooks’ content?

    Thanks a lot!

    #1476920
    Leo
    Staff
    Customer Support

    Hi there,

    Do you see “GP Hooks” activated (or present) in “Appearance > GeneratePress”?

    #1480402
    Matthias

    There is no “GP Hooks” option in “Appearance > GenereatePress”.

    (Still appears in installations on other Websites where Elements isn’t activated yet.)

    #1480836
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Do you see a “Hooks” option in “Appearance > GeneratePress”?

    You can make sure it’s activated by adding this to your wp-config.php file:

    define( 'GENERATE_HOOKS', true );

    #1486642
    Matthias

    Hi,
    Adding this line to wp-config.php unfortunately didn’t make “Hooks” appear under “Appearance>GeneratePress”.

    #1487079
    Tom
    Lead Developer
    Lead Developer

    It wouldn’t, but it would make “Legacy Hooks” appear in “Appearance > Elements”.

    #1488121
    Matthias

    Next to the “Elements” headline, I only have the buttons “Add New Element” and “Legacy Page Headers” appearing after adding the line to the wp-config file.

    #1488923
    Tom
    Lead Developer
    Lead Developer

    Just testing to this to make sure it’s working as it should.

    Added this line to wp-config.php: https://www.screencast.com/t/5TVagCIK

    Now I’m seeing this in “Appearance > Elements”: https://www.screencast.com/t/qwlLKBUBXTN

    Do you have any errors in the “Console” tab if you right-click + Inspect the page?

    #1489947
    Matthias

    I added the aforementioned line to a different location within the wp-config file. This solved the issue. Now Legacy Hooks does appear.
    Thanks a lot for the support! ๐Ÿ™‚

    #1490749
    Tom
    Lead Developer
    Lead Developer

    No problem! ๐Ÿ™‚

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