Hi lads! I wanted to add to the Publisher theme a white stripe below the announcement bar and the header, like this sites has:
If you can help me with that, it will be much appreciated! It is driving me nuts! Haha
Thanks!
Hi lads! I wanted to add to the Publisher theme a white stripe below the announcement bar and the header, like this sites has:
If you can help me with that, it will be much appreciated! It is driving me nuts! Haha
Thanks!
Hi @Beelze6 ,
Please provide link to your store. I will review it and provide you with a custom CSS to get this done.
Thank you
Hey! Thanks for the help! Sure!
Hey @Beelze6 ,
To add a white stripe below the announcement bar and header in the Publisher theme, you can add a bit of custom CSS. Here’s how you can do it:
Follow these steps:
Online Store
Themes
Customize
In the theme editor, find theme setting or Edit Code (usually under Actions > Edit code).
Open your theme’s theme.scss.liquid or theme.css.liquid file (depending on your setup):
Add the following CSS at the end of the file:
/* Add white stripe below announcement bar and header */
.announcement-bar, .site-header {
position: relative;
border-bottom: 5px solid #ffffff; /* Adjust thickness as needed */
}
Save your changes and refresh your site to see the white stripe.
This code adds a white border at the bottom of the announcement bar and header, giving the effect of a white stripe. You can adjust the thickness by changing the 5px value. Let me know if you need further customization!
If I was able to help you, please don’t forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!
Best Regard,
Rajat Sharma
Hey! Thanks for the help!
I have only a “theme.liquid” file under “Edit code” section, but pasted the code at the bottom but didn’t worked.
Tried putting the code under the CSS section on “Personalized CSS” in Theme Settings but didn’t worked either.
If the code didn’t apply through the custom CSS, let’s try directly targeting the relevant elements in the Publisher theme.
/* Add white stripe below announcement bar and header */
.announcement-bar {
border-bottom: 5px solid #ffffff; /* Adjust thickness if needed */
}
.header-wrapper {
border-bottom: 5px solid #ffffff; /* Adjust thickness if needed */
}
Once these are added, refresh the page and check if the stripe appears. Let me know if it still doesn’t apply or if any adjustments are needed. Please feel free to email me, and we can discuss this further in detail.
thanks
Could you please send me an email so we can discuss this further? I’d be happy to go over the details with you.
Sure!
Hi @Beelze6
To complete your requests, please follow these steps:
.utility-bar {
border-bottom: 2px solid !important;
}
sticky-header.header-wrapper {
border-bottom: 2px solid !important;
}
Here is the result: https://prnt.sc/BS4gRYcFg0rk
Best,
Daisy
Oh, that did it! Thank you! How can I change the color of the stripes?
Never mind, I did it! Thank you!