Table of Contents
Feature Introduction
Snippets are a great way to make re-usable blocks of your custom Shogun content that you can use on your Shogun pages. This cuts down development time dramatically as you do not need to create the same blocks, or style the same elements over and over again.
Merchants subscribed under our Grow and Advanced plans can make use of 'Global Snippets,' a feature that enables you to take any snippet and deploy it across many pages. You can find out more about this here:
How to create a snippet
Snippets are a feature designed to create a more efficient workflow when building content.
Select an element that is containing your content, such as a Container, Columns, or Product Box element.
Click the 'Create Snippet' button in the inline menu.
Give your Snippet a name.
Click the Create Snippet button.
A Snippet can also be created using the Create Snippet icon at the top the right sidebar:
How to use a Snippet
Snippets are as easy to use as any other Shogun element. You can find these in the Snippets section of the editor's sidebar. Simply drag a Snippet from the sidebar into the page. All of your copied elements will appear on the page.
How to delete a Snippet
Sometimes, you may need to delete a Snippet from your library, and it's super simple to do! Click the 3-dot icon next to the Snippet's name and select the Delete option.
Note: Currently, Snippets are not available for elements that are within a Product Box. You can refer to the Layout panel on the right side of the editor to see whether this applies to your elements. We will be incorporating more Snippet flexibility for these product-based elements soon. In the meantime, it is possible to make a Snippet of the Product Box itself.