A user added a custom announcement bar below the header in Shopify’s Impact theme but encountered a layout issue: the content aligns correctly with the header, but the background doesn’t extend to full page width. The theme’s built-in width constraints appear to be limiting the background span.
Problem Details:
Custom bar appears above product images/content
Background box doesn’t reach viewport edges
Previous CSS attempts to override theme settings were unsuccessful
Two community members provided CSS fixes targeting the custom announcement bar section:
Made4uo-Ribe’s solution: Add CSS to base.css/style.css/theme.css targeting the section wrapper with background color styling
devcoders’ solution: Add CSS to assets/theme.css removing left/right padding and adding bottom padding to the specific section
Both solutions involve editing theme CSS files through the Shopify admin code editor. The discussion includes a screenshot showing the desired full-width result.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
I’ve added a second announcement bar under the header in my Impact theme. The theme already has a built-in announcement bar above the header, which works perfectly. However, for the custom announcement bar I’ve added below the header, I’m encountering the following issue:
The content (bullet points) aligns correctly with the header, but the background box doesn’t stretch to full width of the page.
It seems like the Impact theme’s built-in width constraints are affecting the new bar, and I need to make the background span the entire viewport while keeping the content aligned with the header.
I’ve tried adjusting the padding and width using custom CSS, but I can’t seem to override the theme’s settings properly without affecting other sections of the page.
Could anyone guide me on how to make the background of the custom announcement bar span full width while keeping the content aligned with the header?
Thank you for submitting your query to the Shopify community. I’d be happy to assist you. Could you please provide the store URL and password (if it’s password-protected) so I can review and get back to you with an update?
I hope you can help me with an issue I’m facing. I’ve set up a test store to troubleshoot the problem since my live store is currently active.
On the test store, I’ve created a product page where you can see the custom announcement bar that appears above the product image and content. The issue is that the bar does not span the full width of the page, and I’m struggling to fix this.
I hope you can help me with an issue I’m facing. I’ve set up a test store to troubleshoot the problem since my live store is currently active.
On the test store, I’ve created a product page where you can see the custom announcement bar that appears above the product image and content. The issue is that the bar does not span the full width of the page, and I’m struggling to fix this.
I hope you can help me with an issue I’m facing. I’ve set up a test store to troubleshoot the problem since my live store is currently active.
On the test store, I’ve created a product page where you can see the custom announcement bar that appears above the product image and content. The issue is that the bar does not span the full width of the page, and I’m struggling to fix this.
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: