Hi,
is there a way to set up dinamically the item in mobile menu. Something like this:
if(wixWindow.formFactor === “Mobile”){
$w(“#expandableMenu1”)[0]. =
}
Hi,
is there a way to set up dinamically the item in mobile menu. Something like this:
if(wixWindow.formFactor === “Mobile”){
$w(“#expandableMenu1”)[0]. =
}
Wix already do a mobile menu that you could use.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/introducing-the-new-mobile-menu
https://support.wix.com/en/article/customizing-your-mobile-menu-4726130
https://support.wix.com/en/article/customizing-the-design-of-your-mobile-menu-616427
As for the code itself, you can use the Wix Window form factor function to add code just for mobile device use only.
https://www.wix.com/corvid/reference/wix-window.html#formFactor
https://support.wix.com/en/article/corvid-tutorial-displaying-elements-in-mobile-only
https://support.wix.com/en/article/corvid-writing-code-that-only-runs-on-mobile-devices
Note that this code does not work properly when viewing in preview mode, it needs to be tested in a live mobile site to be fully tested.
ok but i don’t understand how could modify the items in the menu from the code. Your link explain how to change the menù voice from the editor. Thanks in advance