Dynamic Description from Product Template into Product Meta Description

Dynamic Description from Product Template into Product Meta Description

Steve_Sudoku
Shopify Partner
3 0 1

Hey All

I have created some dynamic product templates, with Product Descriptions leveraging metafields which is working really well. The descriptions are now full of relevant information and I didn't have to rewrite them to suit different products and applications.

 

Trying to figure out how to update or make SERPs reference these - instead of the meta descriptions in the 'product' itself..

 

Have created a few generic snippets in the theme.liquid to update the meta description, but can't make it too complex as it won't display correctly with the variants on offer.

 

Ideally would like to pull the dynamic description from each product template instead.

 

Anyone have any ideas?

 

Cheers!

Replies 2 (2)

PaulNewton
Shopify Partner
7450 656 1561

See https://community.shopify.com/c/technical-q-a/how-to-get-quot-meta-description-quot-field-in-product...

probably need to just use that instead of the custom metafield, product CSV can export some metafields now.

Or automate it using shopify-flow or the usemechanic app to automatically copy the existing metafields to the meta description metafield when they change.

 

There's also whether you mean content/descriptions of schema.org structured data, which is done with JSON+LD , or <titles> that pull part of the text from the description.

For that you'd need to manually override the JSON output either in theme.liquid, or a products template ,or SEO related snippets those templates may use. There is also now a structured_data filter that outputs everything requiring fully replacing that filter with custom JSON+LD https://shopify.dev/changelog/liquid-structured_data-filter-supports-productgroup 

Contact [email protected] 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


Kalen_Jordan
Shopify Partner
779 36 139

You could use an app like flow or mechanic to populate the meta description field using that template.