Skip to product information
【Dawn】Shopifyのテーマ「Dawn」の商品ページに設置したブログ記事セクションでタグの関連度が高い(同じタグを持つ数が多い)順に表示する設定例
Published:2024.01.22

[Dawn] Example of settings to display tags in order of relevance (the number of tags with the same value) in the blog post section installed on the product page of the Shopify theme "Dawn"

We sometimes place blog post links on product pages of the Shopify theme Dawn to increase navigation within the store, but we want to display articles that are as relevant to the product as possible. Here is an example of how to display articles that have common tags with the product in order of relevance (the number of articles with the same tags).


Example of settings for displaying tags in order of relevance (the number of tags with the same value) in the blog post section installed on the product page of the theme "Dawn"


[Settings Step 1] Add the scheme to "featured-blog.liquid" and the label to "ja.schema.json"


[Settings] Replace the code in "featured-blog.liquid" in step 2 with the content that will be displayed with priority according to the number of product tags.


[How to use] Set the same tags for the product information and blog posts you want to link, and check "Give priority to articles related to product tags" in the product template of the theme editor.


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

View store information

[Dawn] Example of settings to display tags in order of relevance (the number of tags with the same value) in the blog post section installed on the product page of the Shopify theme "Dawn"

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

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add scheme to "featured-blog.liquid"

Add a label to "ja.schema.json"

Replace the relevant code in "featured-blog.liquid" with c...

↗ Related Post