Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Image - Structured Data, Shopify theme Dawn 3.0.0

Image - Structured Data, Shopify theme Dawn 3.0.0

BOND_Group
Tourist
9 0 6

How to add markup Structured Data for all product page Images?

How to modify the Json-Ld code below:

{% if seo_media -%}

      {%- assign media_size = seo_media.preview_image.width | append: 'x' -%}

      "image": [

        {{ seo_media | img_url: media_size | prepend: "https:" | json }}

      ],

    {%- endif %}

 

or

 

{%- if product.featured_media.src -%}

      {%- assign media_size = product.featured_media.preview_image.width | append: 'x' -%}

      "image": [

        {{ product.featured_media.src | img_url: media_size | prepend: "https:" | json }}

      ],

    {%- endif -%}

Please advice!

Soeks.Store
Replies 0 (0)