Re: Change background colour of the menu links

Change background colour of the menu links

ham22
Tourist
5 0 3

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")

 

Screenshot 2023-12-23 163827.png

Replies 5 (5)

techDynasty
Shopify Partner
69 11 13

@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 ;
  }
}
> Was my reply helpful? Click Like to let me know!
> Was your question answered? Mark it as an Accepted Solution!
For more Shopify Solutions and custom codes feel free to contact me on techdynastybd@gmail.com"
Buy Me a Coffee

Made4uo-Ribe
Shopify Partner
10189 2418 3063

Hi @ham22 

Do you mean like this?

Made4uoRibe_0-1703325939161.png

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

PageFly-Henry
Shopify Partner
1184 335 299

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

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

ham22
Tourist
5 0 3

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

PageFly-Henry
Shopify Partner
1184 335 299

@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! 😊

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.