I have a horizontal menu called HorizontalMenu1.
I created a number of menu pages in HorizontalMenu1.
They are called 1. MenuA, 2. MenuB 3. MenuC,
I have set "MenuC" to Hide.
I also have a login page.
When I got to the public site URL I correctly see the site with MenuA and MenuB visible.
Now, when I log in as a member of the site, I want MenuC to also show. How can I achieve this please?
I assume I have to somehow access the menu page and call a .show() function upon login.
Below is my login function. I can see that the array "item" contains only MenuA and MenuB when called.
import wixUsers from 'wix-users'; import wixLocation from 'wix-location'; $w.onReady(function () { $w('#loginNow').onClick(function(){ let email = $w('#loginEmail').value; let password = $w('#loginPassword').value; wixUsers.login(email,password) .then(()=>{ wixLocation.to('/home'); }) }) let items = $w('#horizontalMenu1').menuItems; console.log("The menu items are: ", items); });