I am having a new issue, kinda out of the blue. THe announcement bar no longer looks correct. It is supposed to have the black background but now has like the pill look to it. Any suggestions?
Topic summary
A user reports that their announcement bar suddenly stopped displaying correctly—it now shows a black background instead of the intended transparent/pill-shaped design.
Proposed Solutions:
Three community members offered CSS-based fixes:
- Solution 1: Add custom code to theme.liquid file (above
</body>tag) - Solution 2: Insert CSS into base.css targeting
.announcement-bar__announcementwith black background property - Solution 3: Add CSS to base.css/style.css/theme.css (depending on theme structure) using
.announcement-bar-slider .sliderwithbackground: transparent !important;
All solutions involve accessing the theme code editor through Online Store → Themes → Edit Code.
Status: Multiple solutions provided with screenshots demonstrating expected results. The issue appears solvable through CSS customization, though the root cause of the sudden change remains unaddressed. Users are encouraged to mark helpful responses as solutions.
Hey @nope-rope
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hello @nope-rope
- Go to Online Store → Theme → Edit code.
- Find the file base.css and paste the code below at the bottom of the file.
.announcement-bar__announcement {
background: black;
}
Hi @nope-rope
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.announcement-bar-slider .slider {
background: transparent !important;
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!


