Shopify themes, liquid, logos, and UX
Hi there,
Defaultly the menu drawer of my craft theme was of full width but I changed it to only 70%.
Now when the menu is opened there is no visible seperation between the menu and the underlying content which is not suitable for the website. So I need the underlying content to be blurry and a slightly black tinted when the menu is open.
Website - https://www.valcoure.store/
password - kothavara
Someone please help me with this.
Thank You.
Solved! Go to the solution
This is an accepted solution.
This code should go to "Theme settings" => "Custom CSS"
body[class*=overflow-hidden] main {
filter: blur(2px) brightness(0.75);
}
This is an accepted solution.
This code should go to "Theme settings" => "Custom CSS"
body[class*=overflow-hidden] main {
filter: blur(2px) brightness(0.75);
}
Thank You So much
Hey @AnSrSi
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
body[class*=overflow-hidden] main {
filter: blur(4px) brightness(0.75) !important;
}
</style>
RESULT
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank You So much
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hi, sadly didn´t work for me. I have the hoverable menu code, could that be why it doesn´t work? (www.tsukiyo.de)
The code would work for drawer menu on mobile. Your drawer is full-bleed and covers entire window/screen, so you can't see the effect.
If you want to blur the page on desktop, the code should be like this:
body:has(header [open]) main,
body:has(header [open]) footer {
filter: blur(2px) brightness(0.75);
}
thanks for the reply, but i somehow can´t save it when i´m inserting it in custom css.
Yes, this can be picky. There is a workaround -- add a "Custom liquid" section in Footer section group and paste the code wrapped with <style> ... </style> there:
<style>
body:has(header [open]) main,
body:has(header [open]) footer {
filter: blur(2px) brightness(0.75);
}
</style>
thank you, but here exactly? Code -> New custom liquid, but to which asset?
Nope, in Customize.
so custom CSS in theme settings?
Nope. In Customizer, add a "Custom liquid" section in a "Footer" section group.
paste code above into "Code" setting of this new section.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025