Code snippets
This article describes how to create snippets and use them in templates.
Things to know before starting
- The snippet name must be no longer than 50 characters.
- The Content section cannot be blank.
Create snippets
Step-by-step instructions
Navigate to the "Content" section.
Click the "Code snippets" button.
Click the “Create” button.
The name of the snippet is entered in the designated field.
The reusable code is placed in the content section, then the “Save” button is clicked.
To edit a snippet, the snippet’s name is clicked. IMPORTANT: All changes must be saved.
If necessary, a snippet can be deleted by clicking the “Trash bin” icon, selecting the checkbox next to the entry, or pressing the “Delete” button.
The snippets list can be sorted by name for easier navigation.
The preview function can be accessed by clicking the snippet’s thumbnail or by using the display on the right side of the page during creation.
Snippets usages
Step-by-step instructions
Navigate to the "Content" section.
Click the "Templates" button.
Create a template using the Drag & Drop editor.
Use a Custom HTML block to enable snippets.
Open content editing options and click the “Snippets gallery” button.
Select the desired snippet.
Press the “Save” button.