Change background colour of the menu links

Hello, I was just wondering if it was possible to change the background colour of just the area behind the menu links to grey. I have attached a screenshot of where I wanted the grey area, and the store link is: https://oneearlyaccess.myshopify.com/ (Password is “odc”)

1 Like

@ham22

Yes, It is possible to change the background color of the menu bar. To change the color please follow the steps.

From your Admin panel, click Online Store > Themes >Actions > Edit code
find and open the base.css file
Paste the code below at the very bottom of the file.

@media(min-width:768px){
  .header__inline-menu{
    background-color: red ;
  }
}
1 Like

Hi @ham22

Do you mean like this?

If it is check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

nav.header__inline-menu {
    background: grey !important;
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

HI @ham22

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file → Save

nav.header__inline-menu {

background: grey !important;

padding-left: 5em !important;

padding-right: 5em !important;

}

header.header.header–top-left.header–mobile-center.page-width.header–has-menu {

padding-left: 0 !important;

padding-right: 0 !important;

max-width: 100% !important;

}

h1.header__heading {

padding-left: 1.5em !important;

}

.header__icons.header__icons–localization.header-localization {

padding-right: 5em !important;

}

Hope that my solution works for you.

Best regards,

Henry | PageFly

1 Like

Thank you to everyone for your help! I’ve been able to super easily add this to my site now because of you guys :blush: Thanks again, and Merry Christmas!

1 Like

@ham22

It’s my pleasure to help you out!
Cheers to another year of making dreams come true.
Wishing you all the best in the New Year 2024! :blush: