Skip to product information
1 of 0
Published:2024.01.25

A setting example for the Shopify theme "Dawn" that allows users to return to the original list page from a "Back to Blog" link on articles displayed on the second or subsequent pages of a blog.

A setting example for the Shopify theme "Dawn" that allows users to return to the original list page from a "Back to Blog" link on articles displayed on the second or subsequent pages of a blog.

Applications

  • Blog management and editing

How to implement

  • LIQUID
View full details

When you tap the "Back to Blog" button on the blog post screen of the Shopify theme "Dawn", it returns you to the beginning of the blog list. Here is a setting example to ensure that you can return to the original list page when you transition from the second or subsequent list pages.


Example of settings for the theme "Dawn" to allow users to return to the original list page from the "Return to blog" link on posts displayed on the second or subsequent pages of a blog.


[Settings Step 1] Modify some of the code in "main-blog.liquid" and "article-card.liquid"


[Settings Step 2] Add the code to "main-article.liquid" to identify the URL parameters and the code to add the page number parameter to the return blog URL.


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 variables to be passed when calling the snippet "article-card" in "main-blog.liquid"

Add code to "article-card.liquid" to add a page number parameter to the link that calls the blog article

Add code to "main-article.liquid" to identify URL parameters and code...

Related Post

すべてのShopify TIPS