How to remove header fill when I click the drawer menu button on homepage

How to remove header fill when I click the drawer menu button on homepage

MaisonBillonDon
Explorer
87 0 15

How can I remove the color fill on the header when I click the drawer menu button on homepage? I've included an example photo of a website that has achieved what I'm looking to achieve as well as a photo of what my website currently looks like when I press the menu button with the color fill that I'd like to remove in a red box. 

 

Theme: Origin

URL: billon.maison

Screenshot 2025-01-15 at 12.54.59 AM.pngScreenshot 2025-01-15 at 12.55.45 AM.png

Bravo Billón
Replies 11 (11)

TheScriptFlow_
Shopify Partner
848 63 106

Hey @MaisonBillonDon,

This is Qasim a Sr. Shopify Developer and official Shopify Partner. If you want to remove the backgorund color on the header while click on menu drawers then please follow these steps.

  1. Go to theme Customization.
  2. Click on there dots from the theme Customization.
  3. Now the drop down will open just click on "Edit Code".
  4. In the Edit code search for "base.css".
  5. Go to end of base.css file and paste the following code.

 

.overflow-hidden-desktop .header-wrapper, .overflow-hidden-tablet .header-wrapper{
background: rgba(255,255,255, 0.5);
}

 

 

- Need a Shopify Specialist? Chat on WhatsApp +923036471248 Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button!

MaisonBillonDon
Explorer
87 0 15

Unfortunately, this solution did not change anything. 

Bravo Billón
MaisonBillonDon
Explorer
87 0 15

Do you have an alternative suggestion on a solution to this problem?

 

Bravo Billón

topnewyork
Astronaut
1539 189 250

Hi @MaisonBillonDon 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
.menu-drawer__menu-item {
    color: black;
}
.menu-drawer__navigation-container {
    background-color: white;
}
#Details-menu-drawer-container[open] ~ .header {
  display: none;
}
</style>

 If you find my advice helpful please remember to LIKE and accept as SOLUTION.
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
MaisonBillonDon
Explorer
87 0 15

When I use this code, the drawer menu now changes to white but the header still has a color fill on it and I want it to have no color fill. I've included a photo.

 

Screenshot 2025-01-15 at 10.56.58 AM.png

Bravo Billón
MaisonBillonDon
Explorer
87 0 15

Please see my first response. Do you have any other coding suggestions to achieve the effect that I'm looking for?

 

Bravo Billón

websensepro
Shopify Partner
2127 265 317

Hi @MaisonBillonDon 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.overflow-hidden-desktop .header-wrapper, .overflow-hidden-tablet .header-wrapper {
    background: none !important !important;
}
.header__icon--menu span svg.icon.icon-close {
    z-index: 12 !important;
}
summary.header__icon.header__icon--search.header__icon--summary.link.focus-inset.modal__toggle svg.icon.icon-search {
    z-index: 44444 !important;
}

.js details[open].menu-opening>.menu-drawer, details[open].menu-opening>.menu-drawer__submenu {
    z-index: 6 !important;
    height: 100vh !important;
    margin-top: -133px !important;
    padding-top: 60px !important;
}

.header__icon--menu[aria-expanded="true"]::before {
    margin-top: -133px !important;
    height: 100vh !important !important;
}

 Result:

websensepro_0-1736940285661.png

websensepro_1-1736940288711.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

 

 

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
MaisonBillonDon
Explorer
87 0 15

This did not work unfortunately. I tried to paste the code first in base.css and then theme.css. I've attached a photo of the result. 

 

Screenshot 2025-01-15 at 11.04.01 AM.png

Bravo Billón
MaisonBillonDon
Explorer
87 0 15

Hello, please see my first response. I've included a photo of what happens when I use the code you suggested. 

Bravo Billón
websensepro
Shopify Partner
2127 265 317

Apply the code I gave you, then I'll see your issue.

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
MaisonBillonDon
Explorer
87 0 15

This is a picture of what happens when I apply the code you gave me. Screenshot 2025-01-15 at 11.04.01 AM.png

Bravo Billón