A user seeks help making the announcement bar transparent on their Dawn theme Shopify store without disrupting page layouts. Initial attempts using CSS caused cropping issues across product pages and policy pages due to negative margin adjustments (-65px).
Solutions Attempted:
First suggestion: Add CSS code to theme.liquid targeting the announcement bar background on the homepage only
Issue persisted: Mobile version showed cropping at the top of the announcement bar
Second approach: Modify base.css file with media queries for mobile devices (320px-767px) using negative top margin (-80px)
Current Status:
The transparency works, but creates unwanted spacing between the video and collection showcase on mobile homepage. The helper (@websensepro) provided additional CSS targeting .videoBackground .videoBox with margin-bottom: -60px !important to address the spacing issue.
Pending:
Awaiting confirmation from the original poster on whether the latest CSS adjustment resolves the mobile spacing problem while maintaining the transparent announcement bar effect.
Summarized with AI on November 16.
AI used: claude-sonnet-4-5-20250929.
Long story short I want to make my announcement transparent, I have tried a couple of times with different types of code, only one solution worked (kind of), but the only way it worked was to make the margin -65px, but this screwed with the whole website and made everything cropped in the top towards the header, therefore this was not a solution I could use for anything (The code I used is listede below).
I really need some help with what I can do to make the announcement transparent on my site https://ittiba.dk without messing up the margin or the rest of the pages, as I have tried every solution I could find on other posts, and I have tried to solve it myself but without any succes.
This was the code i used in the theme.liquid file:
@Moeed I still have an issue with the mobile version cropping the top of the announcement bar, as you can see on the following picture, how can i adjust the code to not create this issue for users on other formats:
@websensepro This moved the collection showcase on mobile move down which is due to the movement of the -80px margin, which makes the page looks weird, it worked thank you, but can you help me with making deleting the new space between the video and the collection on the homepage on mobile