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 😍
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
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.
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 🙂
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By 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, 2024