Dawn Theme - how do you change gift card image?

Topic summary

A user is attempting to customize the gift card preview image in Shopify’s Dawn theme but encountering persistent issues despite multiple troubleshooting attempts.

Problem: The default gift card image won’t change to a custom uploaded image (smara_gift_card_2.png).

Steps Already Tried:

  • Uploaded custom image to Assets folder
  • Modified code in gift_card.liquid file, changing from shopify_asset_url to asset_url
  • Uploaded image to Content → Files section
  • Tested code changes via browser inspect element (changes appear temporarily but don’t persist)

Current Status: Despite following suggested solutions from community members (including referenced forum posts and code snippets), the default Dawn theme gift card image continues to display instead of the custom image.

Additional Goals: User also wants to customize subject line, background color, and button styling (font and color) for the gift card page.

The issue remains unresolved, with the user seeking further guidance on why the image replacement isn’t working properly.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Hello - I am trying to change the default image on gift card preview page. how do you change the image, subject line, background color and button boxes (font and color)? I have tried to watch the following youtube video and had no luck whilst editing the code (line 102)

from:

Gift card image

to:
Gift card image

https://www.youtube.com/watch?v=oHvt9YRp3u8

Ideal image:

Thanks :slightly_smiling_face:

1 Like

Hi @Ankita31 , You can refer to this post:
https://community.shopify.com/c/shopify-design/gift-card-email/m-p/2566444

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Hi @Ankita31

You can try to use this code and check again

Gift card image

Hi @Dan-From-Ryviu / @BSSCommerce-HDL

Thank you for the reply. the changes you have suggested still doesn’t work. I have tried the following:

  1. uploaded image to assets:

  1. edited code in gift_card.liquid
    from:
    to: Gift card image

  1. I have uploaded the image on Content → Files
    link: https://cdn.shopify.com/s/files/1/0558/1694/5793/files/smara_gift_card_2.png?v=1723498792

  2. I have edited the code in the following section:

When doing all these changes and previewing the changed I still get the default gift card image shopify dawn theme has given:

Ideally - I want it to look like this (I have made that change by changing the img link on inspect element (from step 3) but it doesn’t stay as soon as i refresh):

Thank you :slightly_smiling_face: