Archived topic
Question about items outside hamburger menu on mobile
21 replies · Started by Hernan on March 5, 2023
You can try enabling the Navigation Search in Appearance > Customize > Layout > Primary Navigation. Reference: https://docs.generatepress.com/article/primary-navigation-layout-overview/
Then, we can make it appear only on mobile.
Or, do you want the search icon you currently have on desktop on mobile as well? This one: https://share.getcloudapp.com/E0uX81kP
That's right, I need that search icon. It is a custom post type with a custom search page
I sense that what I want to do is not possible. It would be great if there was a hook before the menu, it would be very useful for adding icons. While in the menu_bar_items hook it would be very useful to add buttons after the menu. I'm not sure how frequent this need can be but I think it would be very cool
It should be possible.
Can you provide admin login credentials so we can take a closer look at your current structure and see what needs to be done?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
I think I prefer to leave it here. What I can comment on my menu is that it is a "common" menu, the current search icon is font-awesome:
![]()
The final two buttons are inserted by hook.
At one point I thought of replacing the search icon with one inserted by hook. But I couldn't properly insert or select the container to apply the "order:-1" property to it
I see.
Well, if you're using the Mobile Header, the other way would be to add a Block Element - Hook hooked to inside_mobile_header.
Then, re-add the Search Icon there.
Thank you ! Extremely interesting that hook
I am going to work on a mobile menu (that does not have a search icon) and I will insert the icon there using this hook
Thank you so much !
You're welcome, Hernan!