Site logo

[Resolved] Disable secondary nav on a mobile/small screen

Home Forums Support [Resolved] Disable secondary nav on a mobile/small screen

Home Forums Support Disable secondary nav on a mobile/small screen

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #176274
    David

    Hi

    Wondering if its possible to disable the secondary nav on a mobile/small screen?

    Main reason is i don’t like the look of the secondary nav on a mobile, but fits nicely under the main menu on the desktop view 🙂

    Thanks as always

    #176377
    Tom
    Lead Developer
    Lead Developer

    For sure, give this CSS a try:

    @media (max-width:768px) {
        .secondary-navigation {
            display: none;
        }
    }
    • This reply was modified 10 years, 1 month ago by Tom.
    #176383
    David

    Hi.

    That has removed secondary nav from desktop and mobile view, how can i have it turned on the desktop view but still off on the mobile?

    #176386
    Tom
    Lead Developer
    Lead Developer

    Need more coffee. Just adjusted the code above 🙂

    #176391
    David

    Thanks Tom

    Go treat yourself to more coffee 🙂

    #176394
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    #176430
    David

    Another question..

    at 768px the menu changes from mobile view to desktop view, how could i get this to change at say 600px

    Also i’m using menu-plus for the mobile menu, on a mobile the menu/text is centered and thus gets hidden when the menu is expanded, is there a way to align this to the right? but still for the actual menu to remain on the left?

    And i’ve just noticed on my mobile when i scroll down the logo/header image pops out, ideas?

    #176507
    Tom
    Lead Developer
    Lead Developer

    It’s possible, but requires quite a lot of CSS. Any reason for this?

    The “official” breakpoint for tablet vs mobile is 768px – it’s a common value found across the web.

    Not sure what you mean by your second question – can I see an example?

    #176524
    David

    Hi Tom

    2nd question – GP menu plus
    If I add a image, like you’ve add GP icon/logo to this site the that logo is on the left and the menu is on the right. Where with NO logo the menu is in the center and it’s this that gets covered when the menu is expanded. I was just going to add an icon (blank/background colour) as at present I don’t have a suitable one.

    3rd question about the logo popout I have fixed

    #176626
    Tom
    Lead Developer
    Lead Developer

    The Menu part should be centered when there’s no logo, as it would be weird with a blank space on the left and the menu text on the right.

    However, nothing should get covered when the menu expands. Any chance you can show me?

    #176719
    Tom
    Lead Developer
    Lead Developer

    If you want to align the menu text to the right, try this CSS:

    @media (max-width: 768px) {
        .menu-toggle {
            text-align: right;
        }
    }
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.