New Landing How can we help? Themeforest Theme Support Neighborhood Make nav use hamburger menu at 1200px and below

Viewing 15 posts - 1 through 15 (of 33 total)
  • #233423
    lobsterass
    Member
    Post count: 386

    Hola awesome developers!

    I’m using some custom CSS for my nav. Now I have problem figuring out something that usually isn’t very difficult for me. I would like my nav menu to become hamburger nav on 1200 px screen and below. Please help.

    This is my custom for nav:

    .header-row .span4.logo-left {
    width: 20%;
    }
    .header-right.span8 {
    width: 75%;
    }
    .header-4 nav .menu > li > a, .header-5 nav .menu > li > a, .header-4 nav#main-navigation .menu > li > a, .header-5 nav#main-navigation .menu > li > a {
    padding: 0 5px!important;
    }

    #233647
    David Martin – Support
    Moderator
    Post count: 20834

    Hey,

    Have you tested the theme option for that:

    Admin -> Theme Options -> Header Options -> Header Options -> Display Mobile Header on Tablet Landscape

    Thanks.

    #233700
    lobsterass
    Member
    Post count: 386

    Hi, yepp. Not working.

    Attachments:
    You must be logged in to view attached files.
    #233702
    lobsterass
    Member
    Post count: 386

    What’s the CSS for making nav going hamburger below 1200 px?

    #233715
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please test this:

    @media only screen and (max-width: 1024px) {
    .header-right > nav:first-child {
        display: none;
    }
    .mh-tabletland #logo {
        margin: 10px 20px 5px;
        float: none!important;
        width: 100%;
    }
    #main-navigation {
        display: none!important;
    }
    .hidden-desktop {
        display: block!important;
        height: auto;
    }
    }

    Thanks.

    #233723
    lobsterass
    Member
    Post count: 386

    Hi!

    Thanx! Almost. I put 1200px instead of 1024px and that brings out the hamburger but it’s misplaced in the bottom of nav. I would love for it to stay in the top right corner. Please see attached images.

    <3

    A

    Attachments:
    You must be logged in to view attached files.
    #233733
    David Martin – Support
    Moderator
    Post count: 20834

    Can you add in the CSS so as I can see this in situ?

    Thanks.

    #233752
    lobsterass
    Member
    Post count: 386

    Hi David!

    Done. Please check it out: http://monroedesign.se/

    #233767
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks, please check now.

    – David.

    #233772
    lobsterass
    Member
    Post count: 386

    Hi David!

    It looks great! Thanx. It’s hard to click it on a mobile as there’s no padding to right of the hamburger. Please see image. How do I add like 15 px padding on the right of the hamburger?

    One big problem though…the hamburger doesn’t expand the drop down menu. I’m not sure what happened here. Do you know? I gotta fix it. This is my live site. ๐Ÿ™‚

    <3
    A

    Attachments:
    You must be logged in to view attached files.
    #233775
    lobsterass
    Member
    Post count: 386

    I fixed the padding issue. Only gotta make the hamburger clickable now. ๐Ÿ™‚

    #233777
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Was your mobile menu working correctly before this? Please re-test without the code added?

    Thanks,
    David.

    #233779
    lobsterass
    Member
    Post count: 386

    Hi!

    Yes, it works when I remove:

    @media only screen and (max-width: 1200px) {
    .header-right > nav:first-child {
    display: none;
    }
    .mh-tabletland #logo {
    margin: 10px 5px 5px;
    float: none!important;
    width: 100%;
    }
    #main-navigation {
    display: none!important;
    }
    .hidden-desktop {
    display: block!important;
    height: auto;
    }
    #logo a:first-child {
    float: left;
    }
    }

    #233780
    David Martin – Support
    Moderator
    Post count: 20834

    For me it does not work, can you clear your cache?

    Thanks.

    #233782
    lobsterass
    Member
    Post count: 386

    I just removed it. I’m testing it in an incognito window. Now, I put it back for you.

Viewing 15 posts - 1 through 15 (of 33 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register