Hi Guys, here is the situation:
New Wix Members Area comes with new Wix Blog, there is a members page inside editor. This page changes according user’s actions. For example, after logging in, it shows another elements, like a search function for registered members, a small profile box with user’s photo…
I designed a column strip with 5 buttons for user to navigate in some specific private pages (only for members). it will work like a second menu.
The goal is:
1 - I dont want to show that column on login page (wix members)
2 - Only After logged in, the column will be visible
I copied an example from here:
import wixUsers from ‘wix-users’;
$w.onReady( () => {
if(wixUsers.currentUser.loggedIn) {
$w(“#columnStrip1”).show();
}
else {
$w(“#columnStrip1”).hide();
}
} );
The problem is:
On login page its working perfectly. The column is hidden.
After logging in process, the next page doesnt show up the column i coded to be visible.
But, if i refresh the page then the column shows up.
Any suggestions?