Skip to product information
1 of 1
Published:2026.03.17

[Horizon] Implementation example for displaying collections in a ranked format using Shopify theme "Horizon"

[Horizon] Implementation example for displaying collections in a ranked format using Shopify theme "Horizon"

Applications

  • コレクション編集
View full details

A customization to display products in a ranked format (1st, 2nd, 3rd...) on collection pages using the Horizon theme. No theme file editing is required — just paste the code into a custom Liquid section. It supports both pagination and same-page loading ("Load more" button).


Desktop and mobile display examples

Ranking number badges are displayed at the top-left of each product image. The top 3 are color-coded for emphasis.

Implementation example for displaying collections in a ranked format using Horizon theme (Desktop/Mobile)


Setup: Add a custom Liquid section to the collection template

Simply add a "Custom Liquid" section to the collection template in the theme editor and insert the code. No vendor files (original theme files) need to be modified.

Setup steps: Add a custom Liquid section to the collection template and insert the code


How it works

CSS counters are used to automatically assign ranking numbers. For paginated pages, JavaScript reads the page parameter from the URL and adjusts the counter start value for pages 2 and beyond. For same-page loading ("Load more" button, etc.), CSS counters naturally increment, so no additional JS is needed.


Limiting rankings to specific collections

By duplicating the collection template with a name like "ranking" and assigning it only to the collections you want ranked, you can display rankings on specific collections without affecting all of them.


A similar TIPS for Dawn is available here. For Horizon, this customization follows the approach described in this blog post, achieving the result without modifying any original theme files.

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 :Horizon 3.4.0

コレクションテンプレートにカスタムLiquidセクションを追加してコードを挿入