- Shopblocks Knowledge Base
- Content
- Snippets
How do I use Snippets?
Snippets are a form of code which links to content that is previously added.
To use a snippet, drop this text anywhere on your site:{{ snippet(Example) }}
replacing "Example" with the name of your snippet.
Snippets can be displayed based on tags on product pages by placing this text anywhere on the page:
{{ snippet(Example | tag1,tag2) }}
This will show the snippet "Example" when either "tag1" or "tag2" is present on the product.
You can find out more about adding tag-based snippets below: