Shopify themes, liquid, logos, and UX
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
Ideal image:
Thanks 🙂
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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
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!
- 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.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
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:
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">
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:
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 🙂
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024