[Resolved] Change menu breakpoint from 768px to 520px

Home Forums Support [Resolved] Change menu breakpoint from 768px to 520px

Home Forums Support Change menu breakpoint from 768px to 520px

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #690826
    Pedro

    Hi,
    Is there any way to change de menus breakpoints from 768px to 520px (or other value less than 768px)?

    Thanks

    #690828
    David
    Staff
    Customer Support
    #690852
    Pedro

    Thanks for your answer, David.

    I saw this article before, but it says:

    In the CSS above, simply change 768px to whatever value you like. It’s important to make it higher than 768px, as going lower won’t work“.

    I don’t know if it is the last answer for this question. So, is it imposible lo change de breakpoint from 768px to a lower value?

    #690854
    David
    Staff
    Customer Support

    Sorry my bad – misread your question, currently there is not an easy way to do that as it would require updating all the mobile styles – i will check with Tom if there has been any changes to that.

    #690862
    Pedro

    Thanks David, please let me know any news!!!

    #690930
    Tom
    Lead Developer
    Lead Developer

    You could try some CSS like this:

    @media (min-width: 520px) {
        .main-navigation .menu-toggle,
        .main-navigation .mobile-bar-items,
        .sidebar-nav-mobile:not(#sticky-placeholder) {
            display: none;
        }
    
        .main-navigation ul,
        .gen-sidebar-nav {
            display: block;
        }
    }
    #691109
    Pedro

    Thanks Tom, it’s a simple solution and works perfect!!!

    #691187
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.