[Resolved] Hide Secondary Navigation on Mobile

Home Forums Support [Resolved] Hide Secondary Navigation on Mobile

Home Forums Support Hide Secondary Navigation on Mobile

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1106694
    Atmostfear

    Hello there,

    I am looking to completely disable the Secondary Navigation from tablet/mobile devices while keeping it on desktop.

    Please advise.

    #1106931
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    @media (max-width: 768px) {
        #secondary-navigation {
            display: none;
        }
    }

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

    Let me know if this helps ๐Ÿ™‚

    #1106949
    Atmostfear

    Hello Leo,

    Thank you, it did the trick.

    Have a good day.

    #1106955
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #1537858
    David

    How can I turn off Secondary Menu on Mobile without relying on css.

    Why?

    Because on desktop Google PageSpeed Insights drops my score from 100 to 93 for a Cumulative Layout Shift (CLS) greater than 1. While the mobile version still scores 100.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Hide Secondary Navigation on Mobile’ is closed to new replies.