Hey!
Please could you help me?
i have a problem on my website when it shows on mobile view
the wpadminbar is not pushing down the other menues there for i want to make a Jquerry code that will command “if user is logged in then position menues in 35px top”
so this is the Jquerry code i found:
var data = {
action: 'is_user_logged_in'
};
jQuery.post(ajaxurl, data, function(response) {
if(response == 'yes') {
// user is logged in, do your stuff here
} else {
// user is not logged in, show login form here
}
});
and i want to perform this CSS as in JQuerry in the position of where user is logged in:
@media (max-width: 1200px) {
#sfm-mob-navbar {
top: 35px;
}
}
@media (max-width: 1200px) {
.x-navbar.x-navbar-fixed-top {
position: fixed;
top: 35px;
right: 5%;
width: 36%;
z-index:999;
}
}
Any idea what i should do?
This is how the website shows in mobile when user is not logged in: http://prntscr.com/jppatk
There is an empty space because the user is not logged in and i wish it to now be shown.
