I have used this code to collapse an item (strip) so it doesn’t show when a user is logged in. The only problem is that when a user is logged in, its gone (which is good) but the items move up and not the footer so it shows a big gap. If I hide the strip it just leaves a blank gap too. Can people please help. This is my code,
import wixUsers from 'wix-users';
$w.onReady(() => {
wixUsers.onLogin((user) => {
myFunction()
});
if (wixUsers.currentUser.loggedIn) {
myFunction()
}
});
function myFunction() {
$w('#columnStrip6').collapse();
}