A JSON-LD for SEO emailed me recently asking about how the app would work with a custom product template, a different one than the standard
product.liquid that Shopify uses.
There is code in the app that will try to automatically detect what the current template is used.
Instead of checking for the exact
product.liquid template, JSON-LD for SEO is a bit smarter and looks for only a partial match.
This means as long as the template has ‘product’ in the name, the Product structured data will be used.
This is what lets JSON-LD for SEO work automatically on regular product templates, product sections, and the custom templates that customer emailed me about.
Similarly, other template names are matched for the other data types. Like a template with ‘article’ or ‘page’ in the name will generate the Article structured data.
And if Shopify changes their theme layouts in the future, just like they did with theme sections, JSON-LD for SEO will still work or can be easily updated.
Pretty cool right?
Structured data is one SEO feature that actually works.
Mostly because Google wants everyone to set it up so their jobs are easier.
You can either audit, code, and test your store’s structured data by hand or install JSON-LD for SEO and have all the structured data you need.
It’s already helping over a thousand Shopify stores with their structured data and it could help you too.
Get more organic search traffic for your Shopify store
Increase organic SEO traffic through Google’s Rich Results. One click allows search engines and others to understand your store and products.