Skip to product information
1 of 0
Published:2024.01.21

Example of settings to prioritize posts with the same tag as the product tag in the blog post section placed on the product page of the Shopify theme "Dawn"

Example of settings to prioritize posts with the same tag as the product tag in the blog post section placed on the product page of the Shopify theme "Dawn"

Applications

  • Product information management and editing

How to implement

  • LIQUID
  • HTML/CSS
View full details

In the Shopify theme Dawn, blog post links are sometimes placed on product pages to increase navigation within the store, but you want to display articles that are as relevant to the product as possible. Here is an example of a setting that automatically prioritizes articles that have tags in common with the product. This saves you the trouble of specifying articles for each product.


Example of settings to prioritize posts with the same tag as the product tag in the blog post section placed 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 Step 2] Replace the code in "featured-blog.liquid" with content that prioritizes articles related to 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