Skip to product information
1 of 1
Published:2026.04.09

[Horizon] Display pages like a blog with thumbnail images in a list

[Horizon] Display pages like a blog with thumbnail images in a list

Applications

  • ページ編集
View full details

This is a setup example for displaying Shopify pages in a thumbnail grid list, similar to a blog. It can be implemented simply by pasting code into a Custom Liquid block — no theme file edits required. Display order is controlled by a variable at the top of the code: you can pin specific pages first, with the rest sorted alphabetically.

By defining thumbnail image and exclusion flag metafields on pages, you can set individual images for each page or hide specific pages from the list.

Result

A thumbnail card grid is displayed on the page list page. It uses Horizon's resource-card styles, so it blends naturally with the theme's design.

Page list with thumbnails and Shopify admin page list


Step 1: Add Metafield Definitions

In the Shopify admin under Settings → Custom data → Pages, add these two metafield definitions.

◆ Thumbnail (custom.thumb_nail)
Type: File

◆ Exclude from list (custom.excluded_from_list)
Type: True or false (Boolean)

Page metafield definition settings. thumb_nail as file type, excluded_from_list as boolean type


Step 2: Set Metafields on Each Page

From each page's edit screen, configure the metafield values. Upload a thumbnail image, and set "Exclude from list" to True for any pages you don't want shown in the list.

Each page's metafield settings screen showing thumbnail image upload and exclusion flag


Step 3: Create Template & Set Custom Liquid

In the theme editor, create a new page template, add a "Custom Liquid" block, and paste the code.

Specify page handles in priority_handles at the top of the code (comma-separated) to pin those pages first, with the rest sorted alphabetically after them.

Theme editor showing code pasted into Custom Liquid block


Dawn version: Display pages with thumbnails in a list (Dawn)

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

ページをサムネイル付き一覧で表示するコード(Horizon版)