Archived topic
menu_bar_items hook can't be found in the hook list
11 replies · Started by Gao on August 16, 2022
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
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?
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....
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.
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
I did to the second one, the one with the issue. Try deactivating non-GP plugins there.
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
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/
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.
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.
Hi, Fernando,
Thank you so much!
The problem was solved!
Jack
You’re welcome Jack!