Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
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.
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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025