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?
The only way is to write here... Just straight link
You can delete this post after if you don't want people to see it
Hi. Mikhail, how can i share the page with you?
Hi!
I believe you should use this event - https://www.wix.com/code/reference/wix-users.html#onLogin
To show your strip when login is successful.
This needs some coding on this page...
If you have problems with this, please share this page, i can check