All things Shopify and commerce
Hey Guys,
https://www.supplieswarehouse.co.uk/collections/best-selling-products
Not sure what I've changed but I was trying to add breadcrumbs and now under my images I have this text
Liquid error (snippets/card-product line 258): new_comment form must be given an article
Any ideas how to fix this?
This is line 258- 264
{%- form 'product', product_form_id %
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
,
}
Solved! Go to the solution
This is an accepted solution.
HI @Amy200101 that is invalid syntax you've presented.
There should be no orphan percent sign (%) before the parameters and no missing percent sign before the closing bracket
And do you diligence and check the form tag usage in the dev docs
https://shopify.dev/api/liquid/tags/form
{%- form 'product', product_form_id
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
%}
Beyond that rollback the file or restore a backup(you did make one before customizing a theme right)
If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
HI @Amy200101 that is invalid syntax you've presented.
There should be no orphan percent sign (%) before the parameters and no missing percent sign before the closing bracket
And do you diligence and check the form tag usage in the dev docs
https://shopify.dev/api/liquid/tags/form
{%- form 'product', product_form_id
, card_product
, id: product_form_id
, class: 'form'
, novalidate: 'novalidate'
%}
Beyond that rollback the file or restore a backup(you did make one before customizing a theme right)
If you need theme repair services then contact me.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025