[Resolved] Disable Primary Menu on Mobile in Landscape Mode

Home Forums Support [Resolved] Disable Primary Menu on Mobile in Landscape Mode

Home Forums Support Disable Primary Menu on Mobile in Landscape Mode

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #978039
    Antonette

    Hi, I am trying to get the primary menu to stop showing up on mobile in landscape mode and only show the secondary menu. The site is http://wellnessbusinessservices.com/. I’ve tried the css from https://generatepress.com/forums/topic/hide-mobile-menu-primary-navigation/ and https://generatepress.com/forums/topic/disable-mobile-menu-for-primary-menu-only/ but it didn’t work for me. Help!

    #978221
    Leo
    Staff
    Customer Support

    Hi there,

    Just to confirm, you want to hide the primary menu toggle on mobile landscape mode only?

    That is quite difficult to do as mobile screens has different sizes.

    Any reason you are doing this? Just wondering if there is a better way.

    Let me know ๐Ÿ™‚

    #978285
    Antonette

    I am trying to hide the primary menu entirely on mobile and only show the secondary menu. Right now the primary is not showing on mobile when it is vertical, but when I turn it to landscape it shows up with the secondary menu under it. Maybe I set it up wrong and there is an easier way to do this but I’m not seeing it.

    #978366
    Leo
    Staff
    Customer Support

    Yeah mobile landscape mode is hard to handled as screens have different sizes.

    You can try this though:

    @media (max-width: 900px) {
        .main-navigation {
            display: none;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #978464
    Antonette

    It worked! Thank you so much!

    #978535
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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