Heading Text
Block Heading-2
02/10/2019
Nagpur
When a snippet is included in a template file, it will have access to the variables within its parent template. As long as the snippet references the relevant variables, e.g. product when included in the product.liquid template, things will work as expected.
Block Heading-3
04/06/2019
Nagpur
If you apply this page template on multiple pages - The same image and settings will be applied. If you change it on one page, it will change all of them.
Block Heading-4
06/05/2019
Nagpur
However what if we would like to make use of a snippet, but reference data that is neither a global or template variable? In order to achieve this, we simply use the Liquid tag {% assign %}.
- choosing a selection results in a full page refresh
- press the space key then arrow keys to make a selection