Dentalia has now been updated to 2.3 and a major update for Recycle is coming soon. We hope you enjoy the new features! Thanks for your patience!

Okay
  Public Ticket #2037259
Change mobile menu breakpoint
Closed

Comments

  •  2
    clementpolito started the conversation

    Hi,

    I have in my menu several and long items. On you demo, the mobile menu is visible from a width ≤ 992px. I need to active it a little bit earlier, othewise my menu overlap my logo.

    Is it possible ?

    Thanks you 

  •  564
    OrionThemes replied

    Hi,

    Changing the breaking point isn't really a good option, because there is a lot of CSS which would need to be changed, also the mobile menu depends on javascript functions as well, which aren't easily rewritten as CSS.
    A better solution is to add additional breaking point for the screen sizes, where logo overlaps - so from 992px up to as much as needed and adjust the menu spacings, and font size of the menu items. 
    Can you share the url to your site? I can help you with css, if you want, I just need to see it in browser.

    Kind regards,
    Andrej

  •   clementpolito replied privately
  •  564
    OrionThemes replied

    Hi Clément,

    I love the desing of your site, buttons, ... 

    I checked your site and I think this would work best:

    @media (min-width: 992px) and (max-width: 1169px) {
        .header-classic.site-header .site-branding {
            position: relative!important;
            width:100%;
            text-align: center;
        }
        .header-classic .site-branding a {
            left: calc(50% - 90px);
        }
       .header-classic.site-header .nav-menu {
            margin-top: -20px;
            margin-right: calc((100vw - 960px) / 2);
        }
    }
    

    It doesn't reduce spacings, but it shows centered menu, with the logo on top.

    Cheers!
    Andrej

  •  2
    clementpolito replied

    Hi Andrej,

    Thank you for your feedback and your solution. It is a good idea.

    Clément