shopifyƽ̨ʹÓÃ×Ô½ç˵ͼƬ¸öÐÔ»¯ÉèÖÃÀñÎ│°ì·¨
ʹÓÃ×Ô½ç˵ͼƬ¸öÐÔ»¯ÉèÖÃÀñÎ│
±¸×¢
ÈôÊÇÄúʹÓà Shopify µÄÃâ·ÑÄ£°å£¬£¬£¬£¬£¬£¬£¬£¬Äú¿ÉÒÔÁªÏµ Shopify Ö§³ÖÍŶӻñµÃ¹ØÓڴ˽̵̳Ä×ÊÖú¡£¡£¡£¡£¡£´Ë½Ì³ÌÐèÒª 15 ·ÖÖÓµÄÉè¼ÆÊ±¼ä¡£¡£¡£¡£¡£ÈôÒªÏàʶÏêÇ飬£¬£¬£¬£¬£¬£¬£¬Çë²ÎÔÄ Support for themes¡£¡£¡£¡£¡£
±¸×¢
´Ë×Ô½ç˵ÓÃÓÚ¸´¹Å Shopify Ä£°å£¬£¬£¬£¬£¬£¬£¬£¬²»ÊÊÓÃÓÚ¡°Online Store 2.0¡±Ä£°å¡£¡£¡£¡£¡£
ÕÒµ½ÄúµÄÄ£°å¼Ü¹¹°æ±¾
̽Ë÷¡°Online Store 2.0¡±Ä£°å×Ô½ç˵
ΪÀñÎ│ÉÏ´«ÐÂͼƬ
ÔÚ Shopify ºǫ́ÖУ¬£¬£¬£¬£¬£¬£¬£¬×ªµ½ÔÚÏßÊÐËÁ > Ä£°å¡£¡£¡£¡£¡£
ÕÒµ½ÄúÒª±à¼µÄÄ£°å£¬£¬£¬£¬£¬£¬£¬£¬È»ºóµã»÷²Ù×÷ > ±à¼´úÂë¡£¡£¡£¡£¡£
ÔÚ Assets Ŀ¼ÖУ¬£¬£¬£¬£¬£¬£¬£¬µã»÷Ìí¼ÓÐÂ×ʲú¡£¡£¡£¡£¡£
µã»÷Ñ¡ÔñÎļþ£¬£¬£¬£¬£¬£¬£¬£¬ÒÔä¯ÀÀµ½ÄúÅÌËã»úÉϵÄÐÂÀñÎ│ͼƬ²¢ÉÏ´«¡£¡£¡£¡£¡£ÎÒÃǽ¨ÒéʹÓüòÆÓµÄÎļþÃû£¬£¬£¬£¬£¬£¬£¬£¬ÀýÈç
blue-giftcard.png¡£¡£¡£¡£¡£
ÌáÐÑ£ºÀñÎ│ͼƬµÄ½¨Òé¾ÞϸΪ 950 ¡Á 550 ÏñËØ£¨Äú»¹¿ÉÒÔʹÓà 5:3 µÄ×ݺá±È»ò×îС³ß´ç 450 x 270 ÏñËØ£©¡£¡£¡£¡£¡£
µã»÷ÉÏ´«×ʲú¡£¡£¡£¡£¡£ÐµÄÀñÎ│ͼƬ½«ÏÔʾÔÚÄúµÄ Assets Ŀ¼ÖС£¡£¡£¡£¡£Çë¼ÇÏÂÎļþÀ©Õ¹Ãû£¨
.png»ò.jpg£©¡£¡£¡£¡£¡£
±à¼ÀñÎ│ģ°åÎļþ£¬£¬£¬£¬£¬£¬£¬£¬Ê¹ÆäʹÓÃÄúµÄÐÂͼƬ
ÔÚ Templates Ŀ¼ÖУ¬£¬£¬£¬£¬£¬£¬£¬µã»÷
gift-card.liquid¡£¡£¡£¡£¡£ÔÚ¸ÃÎļþÖвéÕÒÒÔÏ´úÂ룺
liquid <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="">½«ËüÌæ»»ÎªÒÔÏ´úÂ룺
liquid <img src="{{ 'blue-giftcard.png' | asset_img_url: '1024x1024' }}" alt="">µã»÷ÉúÑÄ¡£¡£¡£¡£¡£
±¸×¢£ºÇëÈ·±£Æ¾Ö¤ÐèÒª½« blue-giftcard.png ¸ü¸ÄΪÐÂͼƬµÄÎļþÃûºÍÀ©Õ¹Ãû¡£¡£¡£¡£¡£
Ô¤ÀÀÄúµÄÐÂÀñÎ│ͼƬ
ÔÚÄ£°å´úÂë±à¼Æ÷ÖУ¬£¬£¬£¬£¬£¬£¬£¬µã»÷ÓÒÉϽǵÄ×Ô½ç˵ģ°å¡£¡£¡£¡£¡£
·¿ªÄ£°å±à¼Æ÷¡£¡£¡£¡£¡£
ÔÚÒ³Ãæ¶¥²¿µÄÏÂÀ²Ëµ¥»òÔÚÒÆ¶¯Éè±¹ØÁ¬ÄÄ£°å²Ëµ¥ÖУ¬£¬£¬£¬£¬£¬£¬£¬Ñ¡ÔñÀñÎ│¡£¡£¡£¡£¡£
ShopifyÉÌ»§¹ÙÍøÔÎÄÏêÇ飺
Personalize gift cards with a custom image
Note
If you use a free theme from Shopify, then you might be able to contact Shopify Support for help with this tutorial. It requires 15 minutes of design time. To learn more, refer to Support for themes.
Note
This customization is for vintage Shopify themes, and doesn't apply to Online Store 2.0 themes.
Find out your theme's architecture version
Explore Online Store 2.0 theme customizations
Upload a new image for your gift card
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.
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.Tip
The recommended size for gift card images is 950px by 550px (you can also use an aspect ratio of 5:3 or a minimum size of 450px by 270px).
Click Upload asset. The new gift card image will appear in your Assets directory. Take note of the file extension (
.pngor.jpg).Edit the gift card template file so that it uses your new 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.pngto 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.
ÎÄÕÂÄÚÈÝȪԴ£ºShopifyÉÌ»§¹Ù·½ÍøÕ¾
- 1º£ÄÚÌú·ÔËÊä
- 2ϺƤÂô³¡ÐÅÓÿ¨·ÖÆÚ³£¼ûÎÊÌâ
- 3Facebook¹ã¸æ¸ÃÔõôÓÅ»¯£¿£¿£¿£¿£¿
- 4Ó¢¹ú¹«Ë¾ÄêÉóµÍ¼ÛÊðÀíµÄÏÝÚå
- 5ÔõÑùÔÚOzonƽ̨Ìí¼ÓÐÂÉÌÆ·£¿£¿£¿£¿£¿
- 6Ôõô×ö¼ÈÄÜÍê³ÉÍË»õÓÖ¿ÉÒÔ±£»£»£»£»£»¤µêËÁ²»ÊÜÓ°Ï죿£¿£¿£¿£¿
- 7¶Ø»ÍÍøÆ½Ì¨Éú³¤Ìصã
- 8ǰհ£¡2019 eBay¼ÒµçÏúÊÛʱ¿Ì±í¼°Ê®´óÈÈÏúÆ·
- 9ÔõÑù½¨ÉèFacebookÏàËÆÊÜÖÚ£¿£¿£¿£¿£¿
- 10ÑÇÂíÑ·Òªº¦´ÊËÑË÷ÅÅÃû¡¢ÍÚ¾òÆÊÎö¹¤¾ß´óÈ«