Re: change announcement bar background

change announcement bar background

myhope
Excursionist
16 0 1

Hello, I have my site wich I edited in the past so the header backround is transparent. Now I want to add an announcement bar above the header but the background is transparent too. I want to make the background of the announcement bar black but the header background still remains transparent. In the code in "theme liquid" I spotted that it take it as a group but I don't know much coding so it would be easier if you can help. Thank you.

Replies 2 (2)

BSSCommerce-HDL
Shopify Partner
2305 835 910

Hi @myhope
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

BSSCommerceHDL_0-1718540613370.png

 

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

BSSCommerceHDL_1-1718540617954.png

 

Step 3: Insert the below code at the bottom of the file -> Save

 

.bwp-header-topbar {
    background-color: black!important;
}

body:not(.template-index) .content-topbar .content-item-custom-text .custom-text,
.bwp_currency.currencies .current, #localization_form .header-selector__toggle
{
    color: #ffff !important;
}

 

Here is result: 

BSSCommerceHDL_2-1718540655427.png

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

PageFly-Henry
Shopify Partner
1184 335 299

Hi @myhope 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save

 

.announcement-bar {

    background: black !important;

    color: white !important;

}

Additionally, I noticed the header menus display 2 lines causing the header to take up a lot of height on the website. You can customize the menu to only display on one line and make your website clearer

PageFlyHenry_0-1718546750676.png

 

 

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.