Skip to product information
1 of 1
Published:2024.11.19

[Dawn] Example of setting up Shopify to use metafields to display Instagram content on the product listing page

[Dawn] Example of setting up Shopify to use metafields to display Instagram content on the product listing page

Applications

  • Collection information management and editing

How to implement

  • LIQUID
  • HTML/CSS
View full details

In relation to how to display Instagram content links in product details , this is a method for displaying an icon in the product list to indicate that the content is linked.

◆Specific setup steps ① Creating metafields
Set up the Instagram URL registration field

② Modify the product card liquid "card-product.liquid" and "base.css" Set the code to display the icon Add CSS to adjust the icon display

③Enter the Instagram URL in the meta field of the product that is linked to Instagram.


Example of setting up a product listing screen using metafields to display content featured on Instagram


[Setup Method 1] Create a product metafield to register your Instagram URL


[(For the Rise/Dawn theme) Setting method ②] Modify "snippets/card-product.liquid" and "base.css"


[How to use] Set the Instagram content URL in the meta field on the target product details screen


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

「snippets/card-product.liquid」にコードを追加

「base.css」にコードを追加

Related Post

その他のLIQUIDに関するTIPS