How to change a Shopify template using URL

Stephen Keable
May 13, 2023

Adding this query string parameter will allow you to test a theme template on a page or product on a live site, without your customers seeing it.


If you already have a question mark in the URL, maybe for a variantId, then use an ampersand instead.

Where to find the “template-slug”

In your theme customiser at the top of the page, you can find the templates for different page types.

Then head to the page you want to test that template on and add the query string parameter to the address bar.

Note the page type needs to match, for example a collection template won’t apply to a product page type.

If you found this useful maybe drop me a tip so I can buy a coffee —



Stephen Keable

Shopify partner, JavaScript/Liquid/Swift developer, convert to serverless architecture and builder of digital products people love to use since 1999.