[Resolved] Hide background image in primary-nav on mobile

Home Forums Support [Resolved] Hide background image in primary-nav on mobile

Home Forums Support Hide background image in primary-nav on mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #332255
    Christiaan

    Hi,

    I have an image in my primary navigation, which is too wide to fit the screen on mobile view.
    So I’d rather hide it on mobile.
    How could I do this?

    Hope to hear
    Chris

    #332431
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    @media (max-width: 768px) {
        .main-navigation, .menu-toggle {
            background-image: none;
        }
    }

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

    Can you provide a link to your site if this doesn’t work? Thanks!

    #332749
    Christiaan

    I’ve added it to Customize-> Additional CSS and it works. Thanks a million!
    Chris

    #332942
    Leo
    Staff
    Customer Support

    You’re very welcome!

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