Archived topic
Displaying menu item on mobile menu
5 replies · Started by Deniz Akay on January 10, 2019
Hello,
There is an option in generatepress to display cart icon on both desktop and mobile menu. If we check this options, cart is displaying separately on the right side of mobile menu. You don't have to expand mobile menu to see it.
I want to display one more menu item as fixed item like shopping cart icon. I have some basic css knowledge, i hope you can help me.
Thanks a lot!
Hi there,
You can use this hook:
https://docs.generatepress.com/article/generate_inside_mobile_menu_bar/
Which is included in Hooks Elements:
https://docs.generatepress.com/article/hooks-element-overview/
Once the item is added we can help with some simple CSS :)
I've added a menu item with "generate_inside_mobile_menu_bar" hook as you told. Works perfect, thanks! It's actually a login/register link and I want to show it to logged out visitors only. Can you help me on this?
I can't use a "visibility rules" plugin and add a menu item on menu settings, because I want to display it on mobile menu separately.
(Currently I've disabled the hook because I don't want to logged in users to see it.)
Hi there,
within the Hook Element > Display Rules > Users - you can select Logged Out :)
God, I wasted big time on google to find a solution :) Thanks for the notice!
Awesome - glad to be of help.