Layout (Liquid tag)

From Shopify Wiki

Jump to: navigation, search

Introduction

The layout tag can be inserted anywhere in any of your templates, and it lets you pick which layout will be used to render that template. The default layout is theme.liquid.

Usage

{% layout "alternate" %}

This will render the current template within the alternate.liquid layout if it exists.

{% layout none %}

This will render the current template without any layout wrapping it.