New Shopify Certification now available: Liquid Storefronts for Theme Developers

Prestige theme: remove header line

Solved
carlajickie
Excursionist
31 0 4

Hi, i recently upgraded to 8.1 prestige and I now have a white line between my announcement bar and header image

 

i tried pasting this code but it does not work:

.Header { box-shadow: none !important; }

 

please anyone ? thanks

 

 Screenshot 2023-11-07 at 13.17.27.png

Accepted Solution (1)
foxdeveloper
Shopify Partner
19 4 6

This is an accepted solution.

Hey @carlajickie , could you try adding the following into your theme.css file right at the bottom:

 

 

@media screen and (min-width: 700px)
#shopify-section-sections--20077799702876__header {
    --header-padding-block: 1rem!important;
}

Alternatively, you can also look into your theme.liquid file for this: and adjust it from 1.2rem to 1rem. (the .2 is what is causing the space at the top). See screenshot below

JICKIE.png

 

 

Please don't forget to Like and Mark Solution if this post helped you.

We turn coffee into code (and Shopify Magic!) and we savour your support, if you found this solution helpful, you can help keep us caffeinated here

Thanks!
Need a knowledgeable developer? Come and visit us at
https://shopifoxdeveloper.com


View solution in original post

Replies 11 (11)
ZestardTech
Shopify Expert
5300 950 1262

Hello There,
Please share your store URL and Password.
So that I will check and let you know the exact solution here.

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
carlajickie
Excursionist
31 0 4

hi it's on pause right now but i took a larger screenshot it's the white line above the logo:

 

Screenshot 2023-11-07 at 13.32.28.png

Dan-From-Ryviu
Shopify Partner
5679 1047 1073

Hi @carlajickie 

Could you drop your store link here to check?

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

Moeed
Shopify Partner
3051 761 925

Hey @carlajickie 

 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
foxdeveloper
Shopify Partner
19 4 6

Hey @carlajickie ,

 

Could you provide the store URL and password? I can check and give you some CSS to add. Most likely it is not a box shadow issue but probably a border bottom or a margin placed on the header. Let me know and I will send the CSS. Thanks again 🙂

Please don't forget to Like and Mark Solution if this post helped you.

We turn coffee into code (and Shopify Magic!) and we savour your support, if you found this solution helpful, you can help keep us caffeinated here

Thanks!
Need a knowledgeable developer? Come and visit us at
https://shopifoxdeveloper.com


carlajickie
Excursionist
31 0 4

url: www.jickie.co

password: nuxl

 

thank you

foxdeveloper
Shopify Partner
19 4 6

This is an accepted solution.

Hey @carlajickie , could you try adding the following into your theme.css file right at the bottom:

 

 

@media screen and (min-width: 700px)
#shopify-section-sections--20077799702876__header {
    --header-padding-block: 1rem!important;
}

Alternatively, you can also look into your theme.liquid file for this: and adjust it from 1.2rem to 1rem. (the .2 is what is causing the space at the top). See screenshot below

JICKIE.png

 

 

Please don't forget to Like and Mark Solution if this post helped you.

We turn coffee into code (and Shopify Magic!) and we savour your support, if you found this solution helpful, you can help keep us caffeinated here

Thanks!
Need a knowledgeable developer? Come and visit us at
https://shopifoxdeveloper.com


carlajickie
Excursionist
31 0 4

works thanks a lot !!

foxdeveloper
Shopify Partner
19 4 6

You are welcome, I'm happy to help! 😁

Let me know if you need help with anything else..also cool website & brand idea by the way!

 

Speak soon,

Alex

Please don't forget to Like and Mark Solution if this post helped you.

We turn coffee into code (and Shopify Magic!) and we savour your support, if you found this solution helpful, you can help keep us caffeinated here

Thanks!
Need a knowledgeable developer? Come and visit us at
https://shopifoxdeveloper.com


carlajickie
Excursionist
31 0 4

actually weirdly enough it stopped working ... 😕

foxdeveloper
Shopify Partner
19 4 6

Hey @carlajickie , it seems when you added the announcment bar, it changed the ID of the section so the CSS was no longer targeting the element as the selector changed.

 

  1. Please go into your code base and go to the header section (likely it is in sections > header.liquid
  2. Search for the <header> element with the class names of shopify-section shopify-section-group-header-group shopify-section--header
  3. add your own custom class name (such as customheader)
  4. replace the CSS I gave above to the one below:

 

@media screen and (min-width: 700px)
.customheader{
    --header-padding-block: 1rem!important;
}

 

Alternatively, you could replace the previous CSS with this:

 

@media screen and (min-width: 700px)
.shopify-section.shopify-section-group-header-group.shopify-section--header{
    --header-padding-block: 1rem!important;
}

 

I would recommend the first solution over this one though because this could affect other elements too. The first one with a custom class name makes sure that you are targeting this element (and only this element)

 

Let me know if that works for you @carlajickie 🙂

Please don't forget to Like and Mark Solution if this post helped you.

We turn coffee into code (and Shopify Magic!) and we savour your support, if you found this solution helpful, you can help keep us caffeinated here

Thanks!
Need a knowledgeable developer? Come and visit us at
https://shopifoxdeveloper.com