Intelligems Theme Snippets

Template Testing Snippet

If you would like to run template tests, add the following Javascript snippet to your theme.liquid file above the standard Intelligems script:

  <script>
    window._template = {
        directory: "{{ template.directory }}",
        name: "{{ template.name }}",
        suffix: "{{ template.suffix }}"
    }
    window.Shopify = window.Shopify || {theme: {id: {{ theme.id }}, role: '{{ theme.role }}' } };
  </script> 

If you are using the Intelligems Theme Block extension, the snippet will be automatically included for you.

Last updated