ÈËÉú¾ÍÊDz©¡¤(Öйú)×ðÁúAGÆì½¢Ìü

ÈËÉú¾ÍÊDz©¡¤(Öйú)×ðÁúAGÆì½¢Ìü(LianLian Global)¹ÙÍøÊ×Ò³

shopifyƽ̨ʹÓÃ×Ô½ç˵ͼƬ¸öÐÔ»¯ÉèÖÃÀñÎ│°ì·¨

shopifyÊÐËÁÄ£°åshopifyÀñÎ│
2022/03/04
×Ô½¨Õ¾

ʹÓÃ×Ô½ç˵ͼƬ¸öÐÔ»¯ÉèÖÃÀñÎ│


±¸×¢

ÈôÊÇÄúʹÓàShopify µÄÃâ·ÑÄ£°å£¬£¬ £¬£¬£¬£¬£¬£¬Äú¿ÉÒÔÁªÏµ Shopify Ö§³ÖÍŶӻñµÃ¹ØÓڴ˽̵̳Ä×ÊÖú¡£¡£¡£¡£¡£´Ë½Ì³ÌÐèÒª 15 ·ÖÖÓµÄÉè¼ÆÊ±¼ä¡£¡£¡£¡£¡£ÈôÒªÏàʶÏêÇ飬£¬ £¬£¬£¬£¬£¬£¬Çë²ÎÔÄ Support for themes¡£¡£¡£¡£¡£

±¸×¢

´Ë×Ô½ç˵ÓÃÓÚ¸´¹Å Shopify Ä£°å£¬£¬ £¬£¬£¬£¬£¬£¬²»ÊÊÓÃÓÚ¡°Online Store 2.0¡±Ä£°å¡£¡£¡£¡£¡£

  • ÕÒµ½ÄúµÄÄ£°å¼Ü¹¹°æ±¾

  • ̽Ë÷¡°Online Store 2.0¡±Ä£°å×Ô½ç˵

ΪÀñÎ│ÉÏ´«ÐÂͼƬ

  1. ÔÚ Shopify ºǫ́ÖУ¬£¬ £¬£¬£¬£¬£¬£¬×ªµ½ÔÚÏßÊÐËÁ > Ä£°å¡£¡£¡£¡£¡£

  2. ÕÒµ½ÄúÒª±à¼­µÄÄ£°å£¬£¬ £¬£¬£¬£¬£¬£¬È»ºóµã»÷²Ù×÷ > ±à¼­´úÂë¡£¡£¡£¡£¡£

  3. ÔÚ Assets Ä¿Â¼ÖУ¬£¬ £¬£¬£¬£¬£¬£¬µã»÷Ìí¼ÓÐÂ×ʲú¡£¡£¡£¡£¡£

  4. µã»÷Ñ¡ÔñÎļþ£¬£¬ £¬£¬£¬£¬£¬£¬ÒÔä¯ÀÀµ½ÄúÅÌËã»úÉϵÄÐÂÀñÎ│ͼƬ²¢ÉÏ´«¡£¡£¡£¡£¡£ÎÒÃǽ¨ÒéʹÓüòÆÓµÄÎļþÃû£¬£¬ £¬£¬£¬£¬£¬£¬ÀýÈç blue-giftcard.png¡£¡£¡£¡£¡£

ÌáÐÑ£ºÀñÎ│ͼƬµÄ½¨Òé¾ÞϸΪ 950 ¡Á 550 ÏñËØ£¨Äú»¹¿ÉÒÔʹÓà 5:3 µÄ×ݺá±È»ò×îС³ß´ç 450 x 270 ÏñËØ£©¡£¡£¡£¡£¡£

  1. µã»÷ÉÏ´«×ʲú¡£¡£¡£¡£¡£ÐµÄÀñÎ│ͼƬ½«ÏÔʾÔÚÄúµÄ Assets Ä¿Â¼ÖС£¡£¡£¡£¡£Çë¼ÇÏÂÎļþÀ©Õ¹Ãû£¨.png »ò .jpg£©¡£¡£¡£¡£¡£

±à¼­ÀñÎ│ģ°åÎļþ£¬£¬ £¬£¬£¬£¬£¬£¬Ê¹ÆäʹÓÃÄúµÄÐÂͼƬ

  1. ÔÚ Templates Ä¿Â¼ÖУ¬£¬ £¬£¬£¬£¬£¬£¬µã»÷ gift-card.liquid¡£¡£¡£¡£¡£

  2. ÔÚ¸ÃÎļþÖвéÕÒÒÔÏ´úÂ룺

    liquid <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="">

  3. ½«ËüÌæ»»ÎªÒÔÏ´úÂ룺

    liquid <img src="{{ 'blue-giftcard.png' | asset_img_url: '1024x1024' }}" alt="">

  4. µã»÷ÉúÑÄ¡£¡£¡£¡£¡£

±¸×¢£ºÇëÈ·±£Æ¾Ö¤ÐèÒª½« blue-giftcard.png ¸ü¸ÄΪÐÂͼƬµÄÎļþÃûºÍÀ©Õ¹Ãû¡£¡£¡£¡£¡£

Ô¤ÀÀÄúµÄÐÂÀñÎ│ͼƬ

  1. ÔÚÄ£°å´úÂë±à¼­Æ÷ÖУ¬£¬ £¬£¬£¬£¬£¬£¬µã»÷ÓÒÉϽǵÄ×Ô½ç˵ģ°å¡£¡£¡£¡£¡£

  2. ·­¿ªÄ£°å±à¼­Æ÷¡£¡£¡£¡£¡£

  3. ÔÚÒ³Ãæ¶¥²¿µÄÏÂÀ­²Ëµ¥»òÔÚÒÆ¶¯Éè±¹ØÁ¬ÄÄ£°å²Ëµ¥ÖУ¬£¬ £¬£¬£¬£¬£¬£¬Ñ¡ÔñÀñÎ│¡£¡£¡£¡£¡£

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

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you want to edit, and click Actions > Edit code.

  3. In the Assets directory, click Add a new asset.

  4. 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).

  5. Click Upload asset. The new gift card image will appear in your Assets directory. Take note of the file extension (.png or .jpg).

Edit the gift card template file so that it uses your new image

  1. In the Templates directory, click gift-card.liquid.

  2. Find the following code within the file:

    <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="">
  3. Replace it with the following:

    <img src="{{ 'blue-giftcard.png' | asset_img_url: '1024x1024' }}" alt="">
  4. 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

  1. From the theme code editor, in the top right-hand corner, click Customize theme.

  2. Open the theme editor.

  3. From the drop-down menu at the top of the page, or from the Templates menu on mobile, select Gift card.

ÎÄÕÂÄÚÈÝȪԴ£ºShopifyÉÌ»§¹Ù·½ÍøÕ¾


¸ü¶à
¡¾ÍøÕ¾µØÍ¼¡¿¡¾sitemap¡¿