[Support request] menu_bar_items hook can’t be found in the hook list

Home Forums Support [Support request] menu_bar_items hook can’t be found in the hook list

Home Forums Support menu_bar_items hook can’t be found in the hook list

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2315096
    Gao

    Hi, GP team,

    We have two questions.

    1. When checking your official demo site in the site library, we saw the hook menu_bar_items hook is used in several site headers.

    However, in our new installation, we can’t find this hook.

    The stranger thing is that this hook appears only if we import the demo site.

    We wonder why. It seems some hooks are hidden by default.

    Do you have a full list of hooks?

    2. Previously, we can easily log in GP site. But now, everytime, a code is needed. The problem is that I need to ask my boss for a code each time. It’s not convenient. Is it possible to turn off the code authentication for our account?

    Thank you.

    Jack

    #2315103
    Fernando
    Customer Support

    Hi Jack,

    1. That’s odd. It should be there. What Element are you creating? A Block or Hook element?

    2. Can you raise a ticket here?

    #2315112
    Gao

    Hi, Fernando,

    Thanks for your quick response.

    1. I shared with you two of our sites, you can log in and check.

    For rotarykilnfactory.com this site, demo was never imported and we can’t find this hook. While in the other site, zxx.agicogroup.com, because we imported a demo site where this hook is used, so we can see this hook in the list.

    Actually, I found this problem in all of our sites that build with GeneratePress.

    We are really confused….

    #2315118
    Fernando
    Customer Support

    Can you try #1 here?: https://docs.generatepress.com/article/debugging-tips/

    It would be good to take a backup of your site first before doing this.

    #2315127
    Gao

    Hi, Fernando,

    I believe you didn’t log in to the site I send to you.

    zxx.agicogroup.com this site has only GeneretePress and GP Pro activated.

    Please log in and check.

    Thank you.

    Jack

    #2315129
    Fernando
    Customer Support

    I did to the second one, the one with the issue. Try deactivating non-GP plugins there.

    #2315136
    Gao

    Hi, Fernando,

    You should log in to the first one rotarykilnfactory.com.

    Like I posted

    For rotarykilnfactory.com this site, demo was never imported and we can’t find this hook. While in the other site, zxx.agicogroup.com, because we imported a demo site where this hook is used, so we can see this hook in the list.

    I just logged in and deactivated all other plugins. Still can’t find the hook.

    Jack

    #2315144
    Fernando
    Customer Support

    Thank you for testing.

    I found the issue. It seems your second site, the rotary site, is still using the float system. The other one is using already using the flexbox system.

    The float system was from older versions. You’ll need to switch to the flexbox system to have generate_menu_bar_items.

    Reference: https://docs.generatepress.com/article/switching-from-floats-to-flexbox/

    #2315152
    Gao

    Thank you very much Fernando!

    But in the link you send to me, I didn’t find how to switch from float to flexbox.

    Do you have such guide?

    Thanks.

    #2315155
    Fernando
    Customer Support

    The option to switch should be in Appearance > Customize > General > Structure.

    It would be good to take a backup of your site first before doing this.

    #2315218
    Gao

    Hi, Fernando,

    Thank you so much!

    The problem was solved!

    Jack

    #2315219
    Fernando
    Customer Support

    You’re welcome Jack!

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