mobile menu toggle button appears on loading page
-
I have a menu toggle button that works perfectly with mobile. the problem is that it appears even on the computer when page loads and every time I click on any post.
It appears just for some seconds then it disappears.Here is my HTML:
<nav class="navbar navbar-default" role="navigation"> <div class="container"> <div class="row"> <div class="site-navigation-inner col-sm-12"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <?php sparkling_header_menu(); ?> </div> </div> </div> </nav><!-- .site-navigation -->
-
We will need to see the webpage with the issue.
Try adding this CSS via a Custom CSS plugin:
@media screen and (min-width: 768px) { .no-js .navbar-toggle { display: none; } }Thanks a lot!
I added it using Simple Custom CSS plugin, now it works well except for the home pageHow can I resolve the problem for the home page?
Looks OK now. If you did nothing to solve this, try flushing your browser cache before loading the page.
Yes, it looks OK in the Private Browsing windows, So the problem is resolved now.
Thank you bcworkz.
Thank you Andrew Nevins.
The topic ‘mobile menu toggle button appears on loading page’ is closed to new replies.