in my theme liquid, there is a bunch of code underlined in red, im not sure why
Topic summary
A user encountered red underlined code in their Shopify theme’s Liquid file.
Diagnosis: Red wavy lines indicate code errors detected by the theme editor. These diagnostics appear both inline and in the Problems tab. Hovering over highlighted lines reveals specific error details.
Root Cause: When extensive highlighting occurs, it typically signals a missing or extra tag somewhere in the code.
Resolution: The issue was traced to a misplaced </style> closing tag at the bottom of the file. After deleting this out-of-place tag, the red underlines disappeared and the problem was resolved.
Resources mentioned: Shopify’s developer documentation on the Code Editor and Shopify Liquid Language Server for troubleshooting guidance.
Hey @kaanayfer ,
Thanks for reaching out!
When your theme detects problems in your code, it adds red or yellow wavy lines underneath it. These errors and warnings (also known as diagnostics) also appear in the Problems Tab of your code editor. To view the specific error, hover your cursor over the highlighted line.
You can check out our developer help docs below for further guidance:
When everything is higlighted like that, it means that there is probably either an extra tag, or a missing tag.
I see a closing tag at the bottom there that seems to be out of place. That could be the cause, if it’s not, try looking for missing tags elsewhere in the code.
Yes thank you, I deleted the tag, and the red lines went away, thank you
