Change the Menu with code?

Is there any way to change any of the individual menu elements with code?

I want to be able to:
a) Hide a menu item based on a condition
b) Change the URL of a menu item based on a condion.

Is this possible?

THX

1 Like

As far as I know, right now, you cannot ‘tap into’ native wix ‘apps’ … think of the menu as an app …

IF you created your menu from buttons: then yes, you can hide different buttons/elements.

As far as changing the URL … you can add a bit of code to redirect them upon completing an action/event.

Without knowing more about your website or your intentions, I really cannot offer any other (concise) options or solutions that could possibly help you. What you may want to look at, is the upcoming features: https://www.wix.com/code/home/coming-soon

Thanks Nayeli!