Using JSON-LD for SEO with custom Shopify templates

By Ilana Davis

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.

All automatically.

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.

JSON-LD for SEO

Get more organic search traffic from Google without having to fight for better rankings by utilizing search enhancements called Rich Results.

Linking Llama

Link discontinued products to their best substitute. Keep discontinued products published on your website and continue to benefit from traffic to these pages.