Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1375323
    bperry420
    Participant

    Can you please give me the correct “media css code” to make my navbar links switch to the mobile hamburger icon sooner?
    When you view the site on a smaller screen the links are pushed under the logo.

    Home


    WordPress 4.7.2 running X – Child Theme theme
    Cornerstone Version 1.3.3

    #1375551
    bperry420
    Participant

    I have attached a screenshot…

    #1375556
    bperry420
    Participant

    sorry, here is a screenshot…

    #1375591
    Jade
    Moderator

    HI there,

    Please add this code in the customizer:

    @media (max-width: 1270px) {
        .x-nav-wrap.desktop {
            display: none;
        }
    
        .x-btn-navbar {
            display: inline-block;
            float: right;
        }
    }

    Hope this helps.

    #1375700
    bperry420
    Participant

    That worked, but the hamburger icon menu will not open when it’s on a wider screen.
    It only drops open when the screen is small. Please help. Thanks

    #1375961
    Friech
    Moderator

    Hi There,

    Please update the given CSS code to this:

    @media (min-width:  980px) and (max-width: 1270px) { 
    	.masthead-inline .x-btn-navbar {
    	display: block;
        	float: right;
    	}
    	.x-nav-wrap.mobile.collapse.in {display: block;}
    	.x-nav-wrap.desktop {display: none;}
    }

    Hope it helps, Cheers!

    #1376270
    bperry420
    Participant

    Thank you so much! That worked. You guys are the best!

    #1376276
    Thai
    Moderator

    You’re most welcome 🙂

  • <script> jQuery(function($){ $("#no-reply-1375323 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>