Insert Reusable Code or Content with Includes

Welcome to our updated Templates pages! Please take our brief survey at the bottom of this page.

Includes are reusable segments of code or content that you can use throughout your templates and email campaigns. The most common use of an include is to create a standard header or footer to use across multiple templates. When you need to make a change, you can just edit a single include rather than making changes manually across all of the affected templates.

Create an Include

Click on the Content tab and select Includes. You must provide a name as well as create both an HTML and a Text version when creating an include.

16_06_Includes-Set up in UI

Use an Include

Invoke the include in the Code tab of your template/campaign editor. This is done using the the ‘include’ function and the name of your include within Zephyr syntax.

For example, if your include was named “footer” you would call it into the template/campaign with the following syntax:

{include "footer"}


You may not contain an include within another include.

For performance reasons, the include syntax is not dynamically evaluated; therefore you cannot, for example, do

{include user_preference_setting}

As a workaround, you could wrap your include in a conditional:

{if user_preference_setting == 'redlayout'} {include "redlayout"} {/if}

Thank you for using our updated Templates pages. Please take our brief survey below.