Content

Snippets

27 views January 18, 2019 0

HTML Code “Snippets” are small, reusable pieces of code that can be integrated into a larger codebase. You can use these code fragments in templates.

The main difference from variables is that it is not a single word or link, but a piece of HTML code or text that can be inserted into templates.

How to create the snippet?

Step-by-step instructions:

  1. Navigate to Snippets Management page (Menu -> Content -> Snippets)
  2. Click “Add Snippet” button
  3. Type in name of the Snippet
  4. Insert the piece of reusable code, then click “Save” button
  5. You may edit or delete the snippet when it needed. Click the “Action” button for corresponding snippet and then choose edit or delete.

How to use the snippets in templates?

Step-by-step instructions:

  1. Navigate to Email Templates Management page (Menu -> Content -> Email Templates)
  2. Add new template (Drag & drop editor)
  3. Choose the Custom HTML Snippet block, click or drag to add the Snippet block to the template
  4. Go to edit content options and click the Snippets button
  5. Pick the snippet