How to Remove or Change the Overlay for Menu and Cart Drawer in Shopify?

Solved

How to Remove or Change the Overlay for Menu and Cart Drawer in Shopify?

arnelo
Excursionist
22 0 8

 

Hi everyone,

When I open the menu or the cart drawer, there’s a semi-transparent white overlay in the background. I’d like to know:

  1. How to completely remove the overlay.
  2. How to change its color and opacity if I want to customize it later.

Screenshots are attached for reference.

Thanks in advance for your help!

 

 

 

photo_2025-01-26_19-08-08.jpg

 

 

 

 

photo_2025-01-26_19-08-11.jpg

 

 

photo_2025-01-26_19-08-11.jpg

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9884 2354 2951

This is an accepted solution.

Hi @arnelo 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

/* cart drawer */
.drawer {
    background-color: black !important;
    opacity: .8;
}
/* Menu drawer */
.header__icon--menu[aria-expanded=true]:before {
    background-color: red !important;
    opacity: .4;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737926869475.pngMade4uoRibe_1-1737926884607.png

    If you like to rmeove it just add transparent. 

 

/* cart drawer */
.drawer {
    background-color:transparent !important;
    opacity: 1;
}

 

  • And Save. 
  • Result:
    Made4uoRibe_2-1737926962288.png

     

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.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9884 2354 2951

This is an accepted solution.

Hi @arnelo 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

/* cart drawer */
.drawer {
    background-color: black !important;
    opacity: .8;
}
/* Menu drawer */
.header__icon--menu[aria-expanded=true]:before {
    background-color: red !important;
    opacity: .4;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737926869475.pngMade4uoRibe_1-1737926884607.png

    If you like to rmeove it just add transparent. 

 

/* cart drawer */
.drawer {
    background-color:transparent !important;
    opacity: 1;
}

 

  • And Save. 
  • Result:
    Made4uoRibe_2-1737926962288.png

     

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.
arnelo
Excursionist
22 0 8

absolutely beautiful, thank you so much