section is rendered without css after adding in theme designer

Denizthemenace
Shopify Expert
21 2 3

Hello,

I'm creating my first Dawn section. I'm following https://shopify.dev/themes/getting-started/create and run

shopify theme serve 

The structure of my section file is as follows:

 

{% stylesheet %}
 CSS gooes in here
{% endstylesheet %}

<div class="dc-video-row">
  HTML/Liquid goes in here
</div>

{% javascript %}
 JS in here
{% endschema %}

 

 

When I add the section in the theme designer the section is added but not rendered correctly - the CSS is ignored:

Denizthemenace_0-1637312566901.png

 

Once I click save, the section is rendered properly

Denizthemenace_0-1637315487691.png

 

What am I doing wrong?

Zin

Replies 0 (0)