Hi,
I am creating a homepage, which has a wix built login/signup button. I want to hide the profilw button when the user is not logged in, and show when they are. With my preview i can hide the button but when I test it with current site, it is not working.
Below is just a test of hiding the buttons
import wixUsers from 'wix-users'; import wixData from 'wix-data'; import wixLocation from 'wix-location'; $w.onReady(() =>{ $w('#realProfileButton').hide(); $w('#myprofile').hide(); });
This is working fine with the preview but not the current site.
Thank you for your help
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area