I have a members only area on my site. I have some code that displays certain buttons and labels once the user has successfully logged on (for example ‘Logout’. This all works fine on a desktop, but when I try logging on via a mobile device, the buttons/labels do not display.
I’ve seen a similar problem post to this, and the issue was because they had hidden elements on the mobile that the code was referencing, but I don’t seem to have any hidden elements on mine.
The site is www. theaka.org.
This is the bit of code that displays the buttons upon logon (I can post all the code if needed):
$w.onReady( () => {
if (wixUsers.currentUser.loggedIn) {
$w(“#button5”).label = “Logout”;
$w(“#button6”).show();
$w(“#button7”).show();
$w(“#button8”).show();
$w(“#button9”).label = “Welcome to the Members Area”;
}
else {
$w(“#button5”).label = “Login”;
$w(“#button6”).hide();
$w(“#button7”).hide();
$w(“#button8”).hide();
$w(“#button9”).label = “Restricted to Members only”;
}
} );
Appreciate any help or pointers anyone can give me.
Thanks