[Resolved] Different colours for collapsed mobile menu

Home Forums Support [Resolved] Different colours for collapsed mobile menu

Home Forums Support Different colours for collapsed mobile menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1164894
    David

    Hello, is there a way how to set different colours for collapsed mobile menu? I see only one colour scheme in customizer for both desktop and mobile menu.

    #1165582
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The mobile menu inherits the desktop menu colors as of right now.

    We can use CSS, though. Are you trying to change the colors of the mobile menu bar, or the entire mobile menu (bar + items).

    Let me know ๐Ÿ™‚

    #1165594
    David

    The bar + items. :DM.

    #1165771
    Tom
    Lead Developer
    Lead Developer

    Right now your navigation is merged with the page hero, which is why it doesn’t have any color. Have you considered turning off the merge option on mobile?: https://docs.generatepress.com/article/header-element-overview/#site-header

    As for the CSS, try this:

    @media (max-width: 768px) {
        .main-navigation,
        .main-navigation ul ul {
            background: #222222;
        }
    
        .main-navigation .main-nav ul li a, 
        .menu-toggle {
            color: #ffffff;
        }
    }
    #1166310
    David

    That has solved everything, thank you. :DM.

    #1166645
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! ๐Ÿ™‚

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