Online store performance and site speed optimization
Convert .scss and .scss.liquid files to .css or .css.liquid for a better performing online store and theme editor.
when i try to convert .scss and .scss.liquid files to .css or .css.liquid through online compiler tools it displays the fata error
"Error! parse error: failed at `$colorBody: {{ settings.color_body_bg }}; ` line: 16"
please tell me anyone how can i resolve this issue. The store speed is not icreasing even i have minified the code, optimize the images also optimize tha apps but speed is still 45.Help me how can i resolve it?
{{ settings.color_body_bg }} is liquid code
SCSS compilers will not recognize liquid code
You cannot turny our SCSS file into CSS if there is Liquid in that SCSS file
You can remove the lines of css that contain liquid and place them into inline <style> tag so that you can use liquid and keep liquid variables
Be warned, this can be very time consuming
Another option is to just take the compiled .scss file that Shopify spits out and use that as your CSS file, but that will result in loosing the customizable variables you get with Liquid, everything will be hard coded.
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023