How to fix Online Store editor session can't be published

How to fix Online Store editor session can't be published

Filip02
Excursionist
29 0 7

When I try to implement this code on custom CSS 

 

And save it this pops up Online Store editor session can't be published

 

Filip02_0-1733419330292.png

 

 

Code is:

 

.shopify-section-group-header-group.section-header {
position: fixed !important;
top: 38.8px;
z-index: 9999 !important;
width: 100%;
}
div.shopify-section-group-header-group.announcement-bar-section {
position: fixed !important;
top: 0 !important;
z-index: 9999 !important;
width: 100%;
}

Reply 1 (1)

LizHoang
Shopify Partner
476 59 86

Hi @Filip02 

 

You can follow the instruction here to fix the issue: 

 

1. Go to Shopify > Theme > Edit code

2. Find the theme.liquid > then add the code below before </head> tag

{% style %}
      .shopify-section-group-header-group.section-header {
        position: fixed !important;
        top: 38.8px;
        z-index: 9999 !important;
        width: 100%;
      }
      div.shopify-section-group-header-group.announcement-bar-section {
        position: fixed !important;
        top: 0 !important;
        z-index: 9999 !important;
        width: 100%;
      }
    {% endstyle %}

 

LizHoang_0-1733471642105.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program