Code Snippets

Code Snippets are predefined HTML blocks that you can attach to each site. Once you’ve defined at least one snippet, users will be able to insert them into the editor using the Insert menu.

There is no limit to the number of snippets you can create for a site.

Creating a Snippet

To create a snippet, select one of your sites and look for the Edit Code Snippets option in the sidebar. Select it to open the Snippet Manager, then select Add Snippet.

Enter a name to describe your snippet and then paste in the appropriate HTML code. This code is what will be inserted into the editor when a user selects the snippet.

To save your snippet, select Submit.

Editing and Deleting Snippets

To edit a snippet, simply select it from the list in the Snippet Manager. If you want to delete the snippet, click the red Delete button at the bottom of the screen.

Note that editing or deleting a snippet will not change the content on existing pages. It will only affect snippets inserted after the edit was made.

Tips for Using Snippets

This is a simple but powerful feature, and the use cases for snippets are endless. Here are some ideas to get you started:

  • Content highlights (e.g. special styles to make a paragraph or div more prominent)
  • Testimonials
  • Repeatable content blocks
  • Blog articles and summaries
  • Just about anything else!