Skip to product information
1 of 1
Published:2023.07.11

How to display the alt text set for an image as a caption on the product detail page of the Shopify theme "Dawn"

How to display the alt text set for an image as a caption on the product detail page of the Shopify theme "Dawn"

Applications

  • Product Image Management

How to implement

  • LIQUID
  • Javascript
View full details

You can specify alt text for each product photo on Shopify, but this method displays it as the image caption on the product detail page of the theme "Dawn". This will help visitors understand the product better, while also having an SEO effect. (There is no problem with using both the alt text and caption of an image from an SEO perspective.)


How to display the alt text set for an image as a caption on the product detail page of the theme "Dawn"


[Settings Step 1] Add the scheme to "main-product.liquid" and the label to "ja.schema.json"


[Settings Step 2] Modify "product-media-gallery.liquid"


[Settings Step 3] Add alt text to product images as needed


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add scheme to "main-product.liquid"


Add a label to "ja.schema.json"

Related Post