How do I fix this issue in my theme.liquid? Thank you in advance for all of the help!
Most of those are not actually issues, but pointless reminders of old unused or outdated code bits that it doesn’t recognize. To that particular thing, you’d have to be a little more detailed, like a screenshot of the entire area of code that it references, whether it’s in the “head” of “body”, as well as providing theme name, website url, and any notes about if the aforementioned issue has any bearing on functionality of the site.
Hello Maximus3, thank you for being here. I just another screenshot for you to look at, would be so grateful if you could help me out with this! Thanks a bunch ![]()
Looks like some classes Shopify used before but have deprecated them so the editor doesn’t recognise it. Inside that editor click on ctrl +f to find for other instances of that scheme_class, if you dont find it anywhere being used you can comment out that line.
Best
Couldn’t you mention a theme name as well? Why the secrecy?
Is it this code?
I guess Shopify releasing the code as is suggests that it’s a non-issue.
This warning means that this object was not initialized. Technically, it’s not needed because uninitialised object will be treated as blank for future manipulations and this is more a reminder to developer to make sure this is what they want.
If you really NEED to fix this warning, you can do it like below, though it is not really necessary.
{% assign scheme_classes = "" %}
{% for scheme in settings.color_schemes -%}
{% assign scheme_classes = scheme_classes | append: ', .color-' | append: scheme.id %}
{% if forloop.index == 1 -%}
. . .
if my post is helpful, please like it ♡ and mark as a solution -- this will help others find it
Hello there, thank you for your response, it is for the Dawn theme. I was trying to add code for google seach console and I couldn’t save, the save button is inactive. I chatted with shopify support and he ended up saying that error message in the code editor is very likely why the “Save” button is remaining disabled. The editor prevents saving when it detects a syntax error to protect the theme from breaking. So I can’t save the code for the google search console yet. I’m sorry I didn’t meant to keep anything secret ![]()
Best Regards
M
I am pretty sure that the reason for unable to save is somewhere else.
This message is not an “error”, it’s a “warning” and would not prevent save.
At least in my copy of Dawn with the same code it does not prevent saves.
This is what happens when there is an actual error:
Save button inactive can be due to, say, lack of permissions to “Edit code”:
Or something entirely different. Say, have you tried another computer /browser to do the edit?
Finally – you may try pasting your HTML code into “Custom liquid” section added to the “Footer” section group instead – may work fine.
Hi Tim!! I’m so excited!!! Thank you so much for the help!! It’s working now! Yay!! Thank you again so so much!! ![]()
![]()
Best Regards
M



