For the complete documentation index, see llms.txt. This page is also available as Markdown.

Intelligems Theme Snippet

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

Was this helpful?