[Resolved] Mobile Header Background Color

Home Forums Support [Resolved] Mobile Header Background Color

Home Forums Support Mobile Header Background Color

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #880828
    David

    Hi,

    My mobile header background is appearing Black — when I have a color code specified (red) … Desktop works Fine (red)

    See screen shot:

    Mobile:
    https://cl.ly/576e2805962e

    Desktop:
    https://cl.ly/071c409dc426

    Please advise –

    Thank you,

    David

    #880866
    Leo
    Staff
    Customer Support

    Hi there,

    The mobile header color actually inherits the settings under Colors > Primary Navigation.

    Give this CSS a shot if you want the mobile header color to be different than the menu item colors on mobile:

    @media (max-width: 768px) {
        #mobile-header {
            background-color: #cc0000;
        }
        .main-navigation .main-nav ul li a {
            background-color: #0a0a0a;
        }
    }

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

    Let me know ๐Ÿ™‚

    #880930
    David

    Hi,

    Actually I’m trying to use the same exact color as the desktop version, so I thought it would simply reflect on mobile without any needed CSS code, but I see it is taking the background color from the NAV bar.

    I’ll try your CSS code.

    thanks,
    Dave

    #880952
    David

    Worked!

    #880993
    Leo
    Staff
    Customer Support

    Awesome ๐Ÿ™‚

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