How do I add a line under the header Mobile View - Publisher Theme

How do I add a line under the header Mobile View - Publisher Theme

randytheasian
Explorer
115 0 23

URL: https://jsdqft-gs.myshopify.com/

 

I'm currently using this code for the desktop: 
@media screen and (min-width: 990px) {
.header:not(.drawer-menu).page-width {
border-bottom: 1px solid;
max-width: 100% !important;
}
.scrolled-past-header .header:not(.drawer-menu).page-width { border-bottom: 1px solid #FFF; }
}

 

I want it on Mobile: 

IMG_6979.PNG

Replies 7 (7)

Rahul_dhiman
Shopify Partner
702 139 144

Hello @randytheasian 
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

 

 

@media screen and (max-width: 768px) {
.header-wrapper {
    border-bottom: 1px solid black !important;
}
}

result
91.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639

Checkout Apps by me

randytheasian
Explorer
115 0 23

Why it doesn't show up on my mobile view?

websensepro
Shopify Partner
1720 194 235

Hi @randytheasian 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

 

 

 

@media(max-width:767px){
.header-wrapper {
    border-bottom: 1px solid black !important;
}
}

 

 

Result:

websensepro_1-1734695048644.png

 

 

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you are happy with my help, you can help me buy a COFFEE

Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
randytheasian
Explorer
115 0 23

It's not showing up

websensepro
Shopify Partner
1720 194 235

websensepro_0-1734699325646.png

Do you need this line where the red line is?

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
randytheasian
Explorer
115 0 23

No, the code you provided works on yours eventually but it's not working on mine. The line is not showing under header on my mobile 

websensepro
Shopify Partner
1720 194 235

 @randytheasian Try this code

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

@media(max-width:989px){
sticky-header.header-wrapper.color-scheme-1.gradient {
    border-bottom: 1px solid black !important;
}
}

 If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP