Invalid CSS in assets/sectionhub.scss.liquid

Invalid CSS in assets/sectionhub.scss.liquid

SimoneF
Shopify Partner
2 0 0

Hi whenever I try to customize my Shopify theme an error saying: 

 

The following error was found in assets/sectionhub.scss.liquid

Invalid CSS after " font-family: ": expected expression (e.g. 1px, bold), was ";" at 237 appears.

 

I had a look at it but everything looks fine to me; here I leave you the css code.

 

  }
  font-family: {{ settings.sh_paragraph_family.family }};
  font-weight: {{ settings.sh_paragraph_family.weight }};
  font-style: {{ settings.sh_paragraph_family.style }};    
  color: {{ settings.sh_paragraph_color }};
  font-size: {{ settings.sh_paragraph_font_size }}px; 
  line-height: {{ settings.sh_paragraph_line_height }};
  h1,h2,h3,h4,h5,h6 {
    @include sh_initial;
    @include sh_inherit;      
    font-family: {{ settings.sh_header_family.family }};
    font-weight: {{ settings.sh_header_family.weight }};
    font-style: {{ settings.sh_header_family.style }};      
    color: {{ settings.sh_header_color }};
    font-size: {{ settings.sh_header_font_size }}px;
    line-height: {{ settings.sh_header_line_height }};
  }

Do you have any suggestions?

 

Thanks in advance for your support

Replies 2 (2)

Jason
Shopify Partner
11207 226 2319

I would expect that the value...

{{ settings.sh_paragraph_family.family }}

 ... is empty/blank. Generally speaking a theme should always have a default/fallback in place but it's possible yours does not. Make sure that setting has a value and isn't left empty.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
SimoneF
Shopify Partner
2 0 0

Thanks for the reply but I can't figure out in which file settings.sh_paragraph_family.family is placed to see if it is empty or has a value.