Customize gift card image

Hi,

I have trouble to coding the gift card image. I can’t find the following code in my theme:

I want to change the gift card image, if please can help me with the instructions.

Thanks

Hi, I do find gift_card.liquid. But how do I upload the image to this section.

Thanks

I do have gift_card.liquid

Hii @X-DREAM,

Step 1: Open Theme Code Editor

  1. Go to Shopify Admin

  2. Click Online Store → Themes

  3. On your active theme → Edit code

Step 2: Locate the Gift Card Template

In the left sidebar, look for one of these locations:

Option A: Templates folder

templates/gift_card.liquid

or

templates/gift-card.liquid

Option B: Sections folder (newer themes)

sections/gift-card.liquid

Note: If none of these exist, your theme may be using Shopify’s default gift card template, which is not editable directly.

Step 3: If the File Exists – Change the Image

Inside the gift_card.liquid file, search (Ctrl + F) for:

gift_card
image

You may see something like:

{{ 'gift-card/card.svg' | asset_url | img_tag }}

Replace it with your custom image:

Upload your image:

  1. Go to Assets → Add a new asset

  2. Upload your image (e.g. custom-gift-card.png)

Update the code:

{{ 'custom-gift-card.png' | asset_url | img_tag: 'Gift Card' }}

Step 4: If the File Does NOT Exist (Most Common Case)

If you cannot find any gift card template, follow this:

  1. Create a Custom Gift Card Template → Edit code

  2. Click Add a new template

Choose:

Template type: gift_card

Name: custom

Shopify will create:

gift_card.custom.liquid

Step 5: Add Your Custom Image in the New Template

Insert your image code where you want it:

<img
  src="{{ 'custom-gift-card.png' | asset_url }}"
  alt="Gift Card"
  style="max-width:100%; height:auto;"
>

Save the file.

Pls End this post. I have solved