The templates from which you can select are limited to the templates available in your currently published theme. When installing a new theme or updating your current theme, new templates may become available, however, these templates are only visible when your theme has been published. In most cases, you will not be able to publish your theme (as your current theme is still live) therefore, you may want to preview the newly available templates without disrupting your live storefront.
In This Article
For the purpose of this example, let's say you have just updated your theme using our Theme Updater App and you would like to use our new "page.details" template, however, this template is not available in your live theme because your updated theme has not been published. In this case, you will need to make your template accessible.
Matching the Template
In order to view a template which is not available in your live theme, you will need to match the template with the template in your unpublished theme. Please see the instructions below for how this process should be handled:
Step 1 - Finding the template you'd like to preview
Please head to Online Store > Themes > Edit code > Templates in your unpublished theme, here, you can find the template you'd like to preview in your live theme. For this example, we'll be using the "page.details" template. Please take note of the title of the template as seen in the screenshot below:
We now know that we will want to preview the "page.details.liquid" template in our live theme.
Step 2 - Making the template accessible
Know that we know the name of the template we'd like to view in our live theme, we're going to head into our live theme and head to the "Templates" directory, here, we can create a new page template titled "page.details". This is the only step that is required, therefore, please avoid replacing any content in the generated file.
Previewing the Template
Now that we have created a template that matches the template in your unpublished theme, you can now preview this template on your live theme by selecting the template from your drop-down menu on any page in Shopify.