Site logo

Archived topic

"Legacy Hooks" not showing. Only "Legacy Headers"

9 replies · Started by Matthias on October 7, 2020

Viewing posts 1–10 of 10

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!

Hi there,

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

There is no "GP Hooks" option in "Appearance > GenereatePress".

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

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 );

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

It wouldn't, but it would make "Legacy Hooks" appear in "Appearance > Elements".

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.

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! :)

No problem! :)

This archived topic is closed to new replies.