Dawn Theme - how do you change gift card image?

Dawn Theme - how do you change gift card image?

Ankita31
Pathfinder
127 0 24

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:

<img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="Gift card image" width="240" height="160">

 

to:
<img src="{{ 'smara_gift_card_2.png' | asset_url }}" alt="Gift card image" width="240" height="160">

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

 

Ankita31_0-1723500914183.png

Ankita31_1-1723500951853.png

Ankita31_0-1723501081826.png

 

Ankita31_0-1723500341689.png

Ideal image:

Ankita31_1-1723501288398.png


Thanks 🙂

Replies 3 (3)

BSSCommerce-HDL
Shopify Partner
2303 847 1062

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Dan-From-Ryviu
Shopify Partner
9562 1923 1959

Hi @Ankita31 

You can try to use this code and check again

<img src="{{ 'smara_gift_card_2.png' | asset_img_url }}" alt="Gift card image" width="240" height="160">

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Ankita31
Pathfinder
127 0 24

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:

Ankita31_0-1723550247470.png

2) edited code in gift_card.liquid 
from: <img src="{{ 'gift-card/card.svg' | shopify_asset_url }}" alt="" class="gift-card__image" height="{{ 570 | divided_by: 1.5 }}" width="570" loading="lazy">
to: <img src="{{ 'smara_gift_card_2.png' | asset_url }}" alt="Gift card image" class="gift-card__image" height="{{ 570 | divided_by: 1.5 }}" width="570" loading="lazy">

Ankita31_1-1723550383289.png


3) 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

4) I have edited the code in the following section:

Ankita31_2-1723550519819.png

Ankita31_3-1723550533739.png


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

Ankita31_4-1723550592081.png


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):

Ankita31_5-1723550683514.png


Thank you 🙂