How do I get id for a menu item?

Hi Support Team I want to hide an item from the menu item in JavaScript but I can not find the same item id as the existing listing id itself
How to get item id in the menu …
#rawabi

1 Like

Hi Thabat,
If I understand correctly your question there in no option to manipulate items in a Menu element using code.
You can create your own menu with Button element and then use code to show or hide it.
Good luck!
Roi

@roi-bendet is this still true? I was told by another Wix development staff person that using code the Member menu item in main navigation bar could be hidden except for Members who are logged in. I would like very much to do this.
Thanks.

" I would like very much to do this."

Me too!

$w('#horizontalMenu1').hide('float')

Does this work for the site menu? And can I get the menu item id by inspecting the page code in preview mode (e.g. “DrpDwnMn12”)? IOW, will this work for hiding a specific element, not the entire menu?

I suspect this not possible yet.

Unless this changed since that post. I will look into the multi-menu suggestion.

You can also create your own menu, much better than that given mini-menu by wix :wink:. But you will have to code a lot!

EDIT:
Here on that site, you can see an example of what is possible to create his own SITE-MENU…

https://www.media-junkie.com/pflegeservice