Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

menu_bar_items does not exist

  • I’ve got a site running GP Premium and Generate Blocks Pro. Trying to add a hook for menu_bar_items, but it straight up does not exist in my list of available hooks. I’ve checked the versions and am running all the latest. Only thing I can think is it doesn’t like something about running a child theme, but that doesn’t seem it, either.

    What am I missing?

    If I type it in, it’s just not in the available options: https://imgur.com/a/cQkvgP5

  • Hi there,

    Could you check in the Customizer > General settings if there is a Structure option that is set to Floats? If it is, then change it to Flex Box. After that, you can retry adding the hook.

    Let’s see how it goes.

  • That’s wisdom and experience at work, my friend! Yes, that did it.

    I would not have thought to look there in a million years. This is an older site that’s been running GP for probably 5+ years now and some of those features that weren’t auto-updated to some other format just never get or got changed.

  • Yeah that explains it. This was due to the GP 3.0 update, and the menu_bar_items hook exists in the Flex Box structure. Thus, legacy sites would need to change the structure to use it.

    Glad it helps!

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