Build Your Course The Easy Way
Get Started Free


In this article:

Snippets are reusable liquid files that can be included in other liquid files.

Basic Use Case

In this example, we'll simply include a header.liquid file from our snippets folder in our theme.liquid layout file. To do this, we'll use the include tag, and pass in the name of the file in quotes (note that you do not need to use any filepaths or file extensions, Liquid is smart!):

<header> <h1>Welcome to the Website!</h1> </header>

Advanced Use Cases

Using with when including a snippet, we can pass in variables to be used within the snippet.

{% include "greeting" with { enabled: true, id: 1, name: "Kajabi" } %}

Contact support or access our 24/7 Live Chat:

Contact Support Live Chat

Need Help? Live Chat with Us.