How to Customize Shopify Gift Card Images and Emails for Your Store
Published on Jul 27, 2024
Are you looking to add a personal touch to your Shopify gift cards? Whether you want to create a festive holiday theme or simply align the gift card design with your brand, customizing gift card images and emails can significantly enhance the customer experience. In this guide, we’ll walk you through the process of modifying gift card images and emails in Shopify, providing you with step-by-step instructions and valuable tips.
Understanding Gift Card Customization in Shopify
Before diving into the customization process, it’s essential to understand the scope of gift card modifications in Shopify.
The Importance of Gift Card Customization
Customized gift cards can:
- Reinforce your brand identity
- Create a more memorable experience for both the gift giver and recipient
- Increase the perceived value of the gift card
Limitations of Gift Card Customization
While Shopify offers flexibility in customizing gift cards, there are some limitations to keep in mind:
- Some customizations may require coding knowledge
- Certain modifications might not be supported for all themes
- The level of customization can vary between free and paid themes
Modifying Gift Card Images
One of the most impactful changes you can make is updating the gift card image. Here’s how to do it:
Uploading a New Gift Card Image
- Go to your Shopify admin and navigate to “Online Store” > “Themes”
- Find your current theme and click “Actions” > “Edit code”
- In the Assets directory, click “Add a new asset”
- Choose your new gift card image file and upload it
- Note the filename and extension (e.g., new-giftcard.png)
Updating the Gift Card Template
- In the Templates directory, locate and open “gift-card.liquid”
- Find the following code:
<img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="">
- Replace it with:
<img src="{{ 'new-giftcard.png' | asset_img_url: '1024x1024' }}" alt="">
- Make sure to replace “new-giftcard.png” with your actual filename and extension
- Save the changes
Previewing Your New Gift Card Image
- From the theme code editor, click “Customize theme” in the top right corner
- Open the theme editor
- Select “Gift card” from the drop-down menu at the top of the page
Customizing Gift Card Emails
Modifying the gift card email can create a cohesive experience for your customers. Here’s how to update both the image and text in the gift card email:
Changing the Email Image
- Go to “Settings” > “Notifications” in your Shopify admin
- Find and click on the “Gift card created” notification
- Locate the following code in the email template:
<img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="">
- Replace it with:
<img src="{{ 'YOURFILENAME' | asset_img_url: '1024x1024' }}" alt="">
- Replace “YOURFILENAME” with the name of your uploaded image file
Modifying Email Content
While in the “Gift card created” notification editor, you can also update the email content to match your brand voice or include seasonal messaging.
Advanced Customization Tips
For those looking to take their gift card customization to the next level, consider these advanced tips:
Optimizing Image Dimensions
- Ensure your gift card image width is a multiple of 600 pixels (minimum 600px wide)
- Use
asset_img_url: '600x'
for optimal email display - If needed, adjust to
asset_img_url: '1024x'
for larger displays
Handling Multiple Gift Card Designs
If you offer different gift card designs (e.g., for various occasions), you’ll need to implement conditional logic in your gift card template. This requires more advanced coding knowledge and may involve creating separate product variants for each design.
Customizing Text Colors
To change text colors on the gift card, you’ll need to modify the CSS in your gift card template. Look for color-related properties and adjust them to match your desired scheme.
Troubleshooting Common Issues
Even with careful implementation, you might encounter some issues. Here are solutions to common problems:
Image Not Displaying
- Double-check that you’ve uploaded the image to your theme assets
- Verify that the filename in your code matches the uploaded file exactly, including the extension
- Ensure you’re using the correct Liquid filter (
asset_img_url
instead ofasset_url
)
Blurry or Pixelated Images
- Use high-resolution images (at least 1200px wide)
- Adjust the image dimensions in the Liquid filter (e.g.,
asset_img_url: '1024x1024'
) - Optimize your image for web use before uploading
Email and Web Display Discrepancies
Remember that the gift card image in emails and on the web page are controlled by different templates. You may need to update both the email notification and the gift card template to ensure consistency.
By following this guide, you should be able to successfully customize your Shopify gift card images and emails. Remember to always test your changes thoroughly before making them live to ensure a smooth customer experience. With a little creativity and attention to detail, you can create gift cards that truly represent your brand and delight your customers.
Take Our Quick Quiz:
Which primary product image do you think has the highest conversion rate?