How can I fix overlapping sticky bar on iPhone?

I would like to make my bar sticky. When I add the custom code like this, everything looks good on web version.

position: fixed;

width: 100%;

left: 0;

top: 0;

But, when I open my website on my iphone, the sticky bar overlaps the header. Please suggest how to fix this.

Hi @olinka012 ,

Please follow the below steps to put the below CSS.

  1. Online store → Themes → edit code
  2. search for base.css or theme.css and paste below CSS
#shopify-section-announcement-bar {position: sticky; z-index: 4; top: 0;}

It’s for DAWN theme if it’s not working then please share the URL or share the theme name

the theme is Craft. Im not sure where exactly I should put this code in base.css file, please advice

the theme is Craft. I tried, it did not change anything, the bar is not sticky…

shaperini.com

just removed the password

I did not get that sticky bar to show good on mobile…