so recently while editing my theme.scss code I stumbled upon a message that tells me that it is advisable that I update my SCSS to CSS or my website’s performance may drop. Here is the message:
Hi Hardik355, can you please explain how are you going to do that?
I tried converted my scss theme file in css with jsonformatter but I think that a lot of functions disappeared.
And now I don’t know how to test this css file in my debut theme.
Thanks for the help!
I’m not understand you have json file and you convert to css. it’s not possible. json file code add another file. but you want check then please follow this step please Go to Online Store->Theme->Edit code then go to assets/ create new file anyname.css. then follow this step.
Create a new scss.liquid file in your Theme/Assets Folder.
Go to Theme.liquid and add this code
{{ ‘filename.css’ | asset_url | stylesheet_tag }}
If helpful then please Like and Accept Solution.
Shopify theme and app developer.
Skype: live:hardikradadiya355
Thanks
Hi Hardik355, thanks for your quick answer.
No, I did not convert a json file, i converted the theme.scss, I did it in this website https://jsonformatter.org/scss-to-css, but, as I wrote, I think that a lot of functions disappeared.
I will try to do what you wrote me and let you know.
Now i’m understand what is the exact issue you facing. but l’m using latest theme then i didn’t get the issue. can you tell me which theme are you using. and also share store url. Otherwise contact me in skype so i will try to fix you problem. You can checking other way.
create clone your master theme.
create new css file i already add in above conversion how to create new css.
your scss.css file only css data convert and paste new csv and check.
Then check your store design not breaking.
NOTE: Please take clone your master theme.
OR
Directly ask shopify support team so you can get proper solution. here is link
Thanks a lot!
I’m trying to follow your steps… but I have a doubt, should I delete in theme.liquid the following: {{ ‘theme.scss.css’ | asset_url | stylesheet_tag }} ?
Or should I keep it and only add {{ ‘newfilename.css’ | asset_url | stylesheet_tag }} ?
In theme.liquid just comment this line {{ ‘theme.scss.css’ | asset_url | stylesheet_tag }} when you comment style sheet not loading. And load your new file and check after add css.