I added this Custom CSS to my Custom Liquid:
a {
align: center;
color: #000;
font-size: 16px;
text-decoration: none;
}
And it won’t let me save the template. When I remove this section, I can save it. Why is that so?
Problem: Adding custom CSS inside a Shopify theme’s Custom Liquid prevented saving; removing that CSS allowed saving.
Details: The CSS targeted anchor tags and included a typo in “text-decoratio n” and was likely inserted without wrapping tags.
Diagnosis: A responder suggested the issue is missing tags when placing CSS in a Liquid section and provided a corrected example. Their snippet wraps the CSS in … and fixes the “text-decoration” spelling.
Proposed fix: Wrap the CSS in … within the Custom Liquid block and ensure properties are correctly spelled (e.g., text-decoration: none;).
Status: No confirmation from the original poster yet; resolution not verified.
I added this Custom CSS to my Custom Liquid:
a {
align: center;
color: #000;
font-size: 16px;
text-decoration: none;
}
And it won’t let me save the template. When I remove this section, I can save it. Why is that so?
Hello @jiane ![]()
I think you missed the tag
a {
align: center;
color: #000;
font-size: 16px;
text-decoration: none;
}