• ibrareza

    (@ibrareza)


    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 -->
Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    We will need to see the webpage with the issue.

    Thread Starter ibrareza

    (@ibrareza)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try adding this CSS via a Custom CSS plugin:

    
    @media screen and (min-width: 768px) {
    
        .no-js .navbar-toggle {
            display: none;
        }
    }
    
    Thread Starter ibrareza

    (@ibrareza)

    Thanks a lot!
    I added it using Simple Custom CSS plugin, now it works well except for the home page

    Thread Starter ibrareza

    (@ibrareza)

    How can I resolve the problem for the home page?

    Moderator bcworkz

    (@bcworkz)

    Looks OK now. If you did nothing to solve this, try flushing your browser cache before loading the page.

    Thread Starter ibrareza

    (@ibrareza)

    Yes, it looks OK in the Private Browsing windows, So the problem is resolved now.
    Thank you bcworkz.
    Thank you Andrew Nevins.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘mobile menu toggle button appears on loading page’ is closed to new replies.