How can I adjust the menu overlay to match the cart overlay style?

How can I adjust the menu overlay to match the cart overlay style?

OrionT
Visitor
3 0 0

I am having some trouble with the different overlays that are used by default. The Menu-Drawer overlay only covers the area under the header, while the Cart-Drawer overlay covers the entire screen. How can I edit the menu overlay to match the same style as the cart overlay?

 

Site is: https://projectwee.org/

Password is: iachay

 

OrionT_0-1709778459312.png

OrionT_1-1709778470233.png

 

Replies 2 (2)

Dan-From-Ryviu
Shopify Partner
11360 2226 2399

Hi @OrionT 

Dan here from Ryviu: Product Reviews & QA app.

You can do that by adding this code to theme.liquid file after <head>

<style>
.header__icon--menu[aria-expanded=true]:before {
top: 0px !important;
height: 100vh;
}
<style>

- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

PageFly-Oliver
Shopify Partner
878 190 186

Hi @OrionT ,

 

You can try this code by following these steps:

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

Step 2: Search file theme.liquid

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

 

<style>
@media(min-width:767px){
.drawer{
background:none !important
}
.cart-drawer__overlay{
top: 210px !important;
    background: rgba(var(--color-foreground),.5)  !important;
}
}
</style>

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | 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.