Pages

From Shopify Wiki

Jump to: navigation, search

The liquid variable pages contains a collection of all of this shop's pages. By calling a page's handle on pages you will either receive the page.

Example usage:

<h1>{{pages.about.title}}</h1>
<p>{{pages.about.author}} says...</p>
<div>{{pages.about.content}}</div>

This lets you print the content of your page called about on any page in your shopify store. Even in the layout! This is a great way to offer your theme's clients to add their own text to sections of the design without exposing them to editing the HTML directly.

Personal tools