Shopify themes, liquid, logos, and UX
Hi, i want this shadow under the line in the Header but only in the mobile version:
I hope you can help me.
thank you
Solved! Go to the solution
This is an accepted solution.
You can change the value of box-shadow like this:
<style>
@media screen and (max-width: 750px) {
.header.header--top-left.header--mobile-left.page-width.header--has-menu.header--has-social.header--has-account {
box-shadow: 0 -3px 31px #5e5e5e!important;
}
}
</style>
Is that better?
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
Hi @store095 ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
.header-wrapper--border-bottom {
border-bottom: 0 !important;
box-shadow: 0 5px 10px gray !important;
}
Step 3: Save and reload home page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
- Here is the solution for you @store095
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
@media only screen and (max-width: 600px) {
.header-wrapper--border-bottom {
box-shadow: 0 5px 14px -2px darkgray !important;
}
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hey @store095
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>
@media screen and (min-width: 768px) {
.header-wrapper--border-bottom {
border-bottom: unset !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
.header-wrapper--border-bottom::after {
border-bottom: .3rem solid rgba(var(--color-foreground), .08) !important;
content: '';
position: absolute;
bottom: -3px;
left: 0;
right: 0;
height: 5px;
background: rgb(0 0 0 / 19%);
box-shadow: 0 4px 10px rgb(0 0 0 / 19%);
z-index: -1;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi @store095
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
@media screen and (max-width: 750px) {
.header.header--top-left.header--mobile-left.page-width.header--has-menu.header--has-social.header--has-account {
box-shadow: 0 2px 14px #9e9e9e!important;
}
}
</style>
Here is result for only mobile:
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
Its working. Thank you.
Is it possible to make it look more like this?:
Best regards
This is an accepted solution.
You can change the value of box-shadow like this:
<style>
@media screen and (max-width: 750px) {
.header.header--top-left.header--mobile-left.page-width.header--has-menu.header--has-social.header--has-account {
box-shadow: 0 -3px 31px #5e5e5e!important;
}
}
</style>
Is that better?
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
Yes. Thank you. 🙂
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024