Shopify themes, liquid, logos, and UX
I tailored this code specifically for the mobile display of the website, and it's operating as expected. Nevertheless, I'm encountering difficulty in extending the same functionality to the desktop and tablet variants. Could you provide guidance on how to address this?
Here's the CSS code snippet for your review:
CSS:
@media only screen and (max-width: 767px) {
.header-mobile {
background-color: rgba(0, 0, 0, 0.8); /* 50% black with transparency */
}
}
Solved! Go to the solution
This is an accepted solution.
Hi @esmoent
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:
.header-navigation.header-nav-plain.header-plain--transparent {
background-color: #333333;
opacity: .8;
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @esmoent, Pls insert this code to your file css
.section-header-navigation:not(.scrolled-past-header) .header-plain--transparent {
background-color: #333333 !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @esmoent
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:
.header-navigation.header-nav-plain.header-plain--transparent {
background-color: #333333;
opacity: .8;
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Worked perfectly. Thank you.
Welcome!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025