Shopify Section “Validation failed: Liquid syntax error: Unknown tag ‘schema'” solution

March 12th, 2024





The liquid error in the GitHub log 'Error: snippets/v3_search_section.liquid, Validation failed: Liquid syntax error (line 336): Unknown tag 'schema'

The liquid error in the GitHub log ‘Error: snippets/v3_search_section.liquid, Validation failed: Liquid syntax error (line 336): Unknown tag ‘schema’

While starting a new theme I got the error message “Validation failed: Liquid syntax error (line 336): Unknown tag ‘schema’” in the GitHub integration theme logs.

I knew the schema was a supported tag, so this error seemed odd. Running the file through a syntax checker also revealed no issues.

The solution turned out to be pretty simple, I had accidentally placed the file in the snippets folder. Instead, it should be placed in the sections folder. This can also happen if the file is placed in the templates folder.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *