Open dominicmichaud opened 6 months ago
Thank you! Using
"name": "t:sections.email-signup-banner.name",
"tag": "section",
"class": "section",
"enabled_on": {
"templates": ["password"]
},
in the sections/email-signup-banner.liquid fixed the theme check error for me.
@captainscorch You're quite welcome! Happy to hear it helped you out :)
Describe the current behavior
Running
shopify theme check
on the latest version of Dawn brings about two errors which should be fixed. The files in questions are:Describe the expected behavior
Running
shopify theme check
on the latest version of Dawn should pass and be successful and only highlights some warnings. No errors should be detected.Version information (Dawn, browsers and operating systems)
Possible solution
I've modified the Liquid and Schema code that were wrong and Theme Check passes successfully, like so:
sections/header.liquid
(Line 144 and line 340) The HTML for the sticky header wasn't able to be parsed correctly because the tagname was not the first element. It was the inline Liquid if statement that was first which resulted in bad content parsing.Line 144, fix:
Line 340, fix:
sections/email-signup-banner.liquid
Thetemplates
attribute in the schema doesn't work in that context. It is deprecated.It should be replaced with
enabled_on
and be moved up near the top of the schema:Additional context/screenshots
I am setting up a new GitLab CI/CD pipeline structure for our projects with the
Shopify CLI
and added a Test stage. In this stage, I am runningTheme Check
to ensure that the Theme is correctly maintained and error-free before merging in branches. My builds were failing because the Check summary detected these two errors. After correcting said-errors like mentioned above, the builds were successful.Screenshots: Fail:
Success: