Only if you create a menu of your own using lightbox.
In that case you can do whatever you wish using code.
(I always do it and I never use the Wix Menu element since it’s too limited).
Ahh thank you, I’m not a big fan of the built-in menu system either. It doesn’t have a lot of functionality and it doesn’t display well on mobile.
How do you suggest creating a menu using a lightbox?
When I said ‘lightbox’ I had a hamburger menu in mind.
If you want to have horizontal (always-open) menu, you can do it with repeater.
So what you can do is put a hamburger icon on the header and link it to a lightbox.
In the lightbox I put a repeater of on item per row and put a button in the item.
Now how to proceed depends on your needs.
You can either use wixSite to get all site page and assign them to the repeater (after filtering out the pages you want to hide from menu): https://www.wix.com/velo/reference/wix-site/getsitestructure
(user repeater.onItemReady to commect the button.label to the name property and the button.link to the url property).
Or don’t use wixSite but create a hard-coded array of pages you want to assign to the repeater).
Check for logged-in/out or member role and change the repeater data in accordance.
I recommend to retrieve the info (re the role) in advance and store it to the memory, so you won’t have to go to have a lag time when you open the menu (retrieving this info from memory is quite fast).