Is there a way to display text based on swiping images?

Topic summary

Goal: On a Shopify product page, show a text (e.g., the person’s height) that updates as the customer swipes between product images.

Approach suggested:

  • Store the per-image text in the image’s alt attribute (alt = alternative text) and render the current image’s alt text alongside the gallery. Requires custom code to detect the active slide and update the displayed text.

Implementation status:

  • No code snippet provided. The solution is acknowledged to need custom development.

SEO and data considerations (additional guidance):

  • Relying solely on metafields to generate the product description can be problematic for Shopify’s internal search and Google Ads, which primarily use the product title and description fields.
  • Metafields may still be fine for Google Search (via Google Search Console), but won’t feed into Shopify search/Ads unless synced to the main description.

Possible workaround:

  • Use a custom app or Shopify Admin REST API to programmatically push the generated text into the product description (e.g., via Postman) so it’s indexed where needed.

Status: Unresolved; actionable path identified but no final implementation shared.

Summarized with AI on December 30. AI used: gpt-5.

on the product page, i want to display a text with the height of the person in the image.

I have multiple images with each has a different person with a different height.

how can I display a text that changes when swiping to a different image?

thanks!

Hi @orhl1234 ,

We can set the text on the image alt so that we can display them accordingly.

Thank you

how?

Hi @orhl1234 ,

We need to write a custom code for that.

Thank you

Hi @orhl1234 ,

You are right about the SEO part of description implementation using metafields.

However this is also a misconception, using product description generated using metafields are not good for below cases.

  1. When you want user to search the text, as Shopify use product title and description for it’s search.
  2. You are running Google Ads, as they read data feed provided by Shopify which contains the product description and title.

But if you are using Google webmaster for SEO then, yes you can use that.

And yes, you can create the custom app which will use product rest API to push the update text in product description using postman.

Hope this info is useful to you.