Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1021467
    tom.wujec
    Participant

    Hi Themeco,

    I have just returned to X Theme and it’s just fantastic with Cornerstone. But I have a problem with http://www.tomwujec.com/.

    I’m trying to change the breakpoint when the site goes from a full text main menu to a mobile menu. I’d like to keep the breakpoint much smaller than the default, say at 700 pixels across.

    I’ve looked through the archives and have seen several references to CSS code, none of which are doing what I’d like.

    Can you advise?

    Thanks,
    Tom

    #1021714
    Paul R
    Moderator

    Hi Tom,

    Thanks for writing in!

    To achieve that, you can add this under Custom > CSS in the Customizer.

    
    @media (max-width: 979px) {
        .masthead-inline .x-btn-navbar {
             display:none;
        }
    
        .x-nav-wrap.desktop {
             display: block;
        }
    }
    
    @media (max-width: 700px) {
        .masthead-inline .x-btn-navbar {
             display:block;
        }
    
        .x-navbar .x-nav-wrap.desktop {
             display: none;
        }
    
        .x-navbar .x-nav-wrap.mobile.in {
             display:block !important;
        }
    }
    

    Hope that helps.

    #1024014
    tom.wujec
    Participant

    Fantastic. Thanks.
    Once again, you guys really rock.
    Tom

    #1024278
    Joao
    Moderator

    Hi Tom,

    Thanks very much for your kind words.

    We really appreciate it.

    Let us know if you need help with anything else.

    Joao

    #1057810
    chleroux
    Participant

    Hi,

    i needed the same thing than Tom, thank you.

    But i have only 2 links in my menu and would like to never show the mobile menu button.
    So i add only

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

    With that solution, the mobile menu button appear too, with the normal menu.

    thank you, best regards

    #1057827
    Paul R
    Moderator

    Hi,

    You can try this code instead

    
    @media (max-width: 979px) {
        body .x-navbar .x-btn-navbar {
             display:none !important;
        }
    
        body .x-navbar .x-nav-wrap.desktop {
             display: block !important;
        }
    
        body .x-navbar .x-nav-wrap.mobile {
             display: none !important;
        }
    }
    

    Hope that helps.

    #1057961
    chleroux
    Participant

    yeah, it’s great !!!!!!!

    Thank you very much

    #1058001
    Joao
    Moderator

    Great to hear it.

    Reach us if you need assistance with anything else.

    Joao

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