navbar bug with no #wpadminbar
-
Hello,
I noticed that when a guests scrolls on mobile, the navbar gets a style attribute of 46px. This doesn’t make sense for users that are not logged into WordPress. I created a ticket on your github account: https://github.com/cherniy95/Flation/issues/1
Since the github is out of date, I decided to post this here.
in bodymargin.js on line 19 I added an additional condition.
if ( $('#wpadminbar').length && $("body").width() < 600 ) {
This check to see if #wpadminbar exists on the page along with the body check you wrote. This will prevent the visual bug. Please update your github repository, I would love to help you. Great theme! ??
- The topic ‘navbar bug with no #wpadminbar’ is closed to new replies.