Shopify themes, liquid, logos, and UX
I'm looking to use Shopify's built-in JSON-LD functionality for product schema markup.
However, I have one issue: My product pages are a bit non-traditional as they use extensive descriptions, pictures and advanced HTML (we sell B2B). As a result, the default "description" becomes very messy and long when using the below default method from the product.liquid file:
"description": {{ product.description | strip_html | json }}
Ideally I would like to replace the product.description with e.g. my SEO meta description from each page - but I seem to be unable to identify the adequate handle to parse in order to achieve this. Is there a way to successfully do this?
If not, is there a way to define the description separately on each page - i.e. could I remove the description field from the Shopify-generated schema information - and then parse a separate block containing only this on each product page?
Solved! Go to the solution
This is an accepted solution.
It seems using below solved this for me:
"description": {{page_description}},
use this theme for long description 🙂
https://themes.shopify.com/themes/warehouse/styles/metal/preview
This is an accepted solution.
It seems using below solved this for me:
"description": {{page_description}},
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024