Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1191970

    Hi guys,
    the menu on our customer site is breaking below a viewport fo 1300px. To avoid this and show a burgermenu, I tried to use this code:

    @media only screen and (max-width: 1300px) {.av-main-nav > li.menu-item-avia-special {
        display: block;
    }
    .av-main-nav > li {
        display: none;
    }}
    
    @media only screen and (min-width: 990px) {
    span.menu-break {
    display: block;
    line-height: 0;
    bottom: 30px;
    position: relative;
    }
    .menu-item-top-level{
    text-align: center;
    }}

    …but this is messing up the design with a jumping menu! (Just try yourself use viewport below 1300px and mouseover burger-menu…)
    Do you have any ideas? All similar support requests didn’t work…

    Best
    Stefan

    #1192145

    Hey Stefan,

    Please try this CSS instead to see if you have any luck with it:

    @media only screen and (max-width: 1300px) {
      nav.main_menu {
        display: block !important;
      }
      #avia-menu .menu-item {
        display: none;
      }
      .av-burger-menu-main.menu-item-avia-special {
        display: block;
      }
    }
    

    Best regards,
    Rikard

    #1192306

    Thanks Rikard,
    its the same result :-(
    Is there any way to create a new menu and activate it with the burger menu? I guess it has to do with the second layer menu entries which are automatically showing here… It works fine on the real mobile view… Any more ideas?
    Best
    Stefan

    #1192472

    Hi Stefan,

    Yes, you can do that under Enfold->Main Menu->General, look for the Alternate Menu for Mobile option.

    Best regards,
    Rikard

    #1210343

    Hello Again, (Sorry had to take a break on this due to the Corona outbreak)

    This Problem still persists, what have I done so far:
    – set a designated menu (Enfold->Main Menu->General)
    – eliminated all extra coding in styles css what where dealing with burger menu
    – deactivated all plugins and tried
    – tried a plugin (WP Mobile Menu – The Mobile-Friendly Responsive Menu)

    still the formating/style of the mobile menu is a desaster… mainly 2nd level menu issues I guess…
    Could you please have another look?
    Best regards
    Stefan

    #1210616

    Hi Stefan,

    Thanks for the update, I can’t load your site though. Did you move it?

    Best regards,
    Rikard

    #1210671

    Hi Rikard,
    it’s still at the same place and I can reach it…
    best
    S.

    #1210936

    Hi,

    Thanks for the update, your site is working now. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1211645

    Hi Rikard,
    thanks for this…
    Access provided…
    Best
    Stefan

    #1211743

    Hi Stefan,

    This code is the problem:

    ul.sub-menu {
    width: 300px!important;
    margin-left: 8px!important;
    margin-top:-32%!important;
    }

    If you comment out the -32% argument in your style.css then you will see that is goes back to normal. I’m not sure if that CSS is uses on your desktop version though? If so then please try placing it in a media query instead:

    @media only screen and (min-width: 768px) {
    ul.sub-menu {
    width: 300px!important;
    margin-left: 8px!important;
    margin-top:-32%!important;
    }
    }

    Best regards,
    Rikard

    #1212589

    Thanks Rikard,…spot on!!!
    The mobile menu works now!!

    Could you see why ‘only’ the English menu is different from the German menu (it slips 10px down) when I add this code?

    nav.main_menu .av-main-nav {
    	font-size: 1.3vw!important;
    	text-decoration: none;
    	margin-top: 10px!important;
    }

    I don’t get it as the styles.css is the same for both languages…? I need to place the main menu further down and the dropdon aligned with the slider image.

    txs a lot,
    Stefan

    #1212857

    Hi Stefan,

    I can’t see any difference between the two languages on my end, did you remove the code?

    Best regards,
    Rikard

    #1212922

    Really sorry Rikard, I haven’t fully understood why, but I managed to align the German and the English menu…(and forgot to let you know…)

    I did that by eliminating css bits step by step….

    Still…. I need to place the main menu further down and the dropdown aligned with the slider image. Would you have a look at this please?

    #1213201

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    nav.main_menu #avia-menu li a {
      line-height: 160px;
    }

    Best regards,
    Rikard

    #1213231

    Thanks Rikard,
    this seems to do the ‘line-height’ in the dropdown menu. No effect on the main menu and dropdown over all position.
    I can’t seem to find the top menu / main menu css class (Using Hummingbird cache (del) – Browser ctrl -f5)
    Do you have a nother idea?
    txs S.

    #1213565

    Hi,

    Please try this instead:

    #top #header_main > .container .main_menu .av-main-nav > li > a {
        line-height: 160px !important;
    }

    Best regards,
    Rikard

    #1325872

    Topic solved! Thanks!

    #1325995

    Hi,

    Thanks for the update. I’ll go ahead and close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Burger menu jumping’ is closed to new replies.