Skip to product information
1 of 0
Published:2024.01.22

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"

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"

Applications

  • Product information management and editing

How to implement

  • LIQUID
  • HTML/CSS
View full details

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.

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