Hi, @jjcastillot !
I’m Miles from the Social Care team at Shopify. Modifying your gift card image is something you can do in your Shopify admin, but it does require some coding. I’ll walk you through each step, but I want to start with some information if you’re unsure how to code.
If you’re using a free theme from Shopify, then our Support team might be able to help you with this tutorial. Although Shopify can help you with many customizations, some kinds of customizations aren’t supported.
If you’re using a paid theme, then your theme was made by a third-party developer and Shopify’s Support team can’t help you with it. If you need help customizing a paid theme, then consider hiring a Shopify Expert. Similar to free themes, some kinds of customizations aren’t supported because of limitations associated with the theme or Shopify admin.
Learn more about support for themes.
Uploading your image.
To upload a new image for your gift card, follow these steps:
-
From your Shopify admin, go to Online Store > Themes.
-
Find the theme you want to edit, and click Actions > Edit code.
-
In the Assets directory, click Add a new asset: New asset menu
-
Click Choose File to browse to the new gift card image on your computer and upload it. We suggest using a simple filename, for example blue-giftcard.png.
-
Click Upload asset. The new gift card image will appear in your Assets directory. Take note of the file extension (.png or .jpg)
Attach picture to the gift card image.
- In the Templates directory, click gift-card.liquid.
- Find the following code within the file:
<img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt=""> - Replace it with the following:
<img src="{{ 'blue-giftcard.png' | asset_img_url: '1024x1024' }}" alt=""> - Click Save.
Note: Make sure to change “blue-giftcard.png” to the file name and extension of the new image as needed.
Preview your new gift card image.
- From the theme code editor, in the top right-hand corner, click Customize theme.
- Open the theme editor.
- From the drop-down menu at the top of the page, or from the Templates menu on mobile, select Gift card.
I hope this helps! Please let me know if you need any assistance or get stuck at any step.