How to link to a custom template in shopify?

by darrion.kuhn , in category: PHP CMS , 9 months ago

How to link to a custom template in shopify?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by tressie.damore , 9 months ago

@darrion.kuhn 

To link to a custom template in Shopify, you will first need to create the custom template and assign it to specific pages or products in your Shopify admin. Here's how you can do it:

  1. Create a custom template:
  • In your Shopify admin, go to "Online Store" and then "Themes."
  • Click on "Actions" and then "Edit code."
  • In the "Templates" folder, click on "Add a new template."
  • Select the type of template you want to create (e.g. page, product, collection).
  • Write the HTML and Liquid code for your custom template.
  1. Assign the custom template to specific pages or products:
  • In the Shopify admin, go to the page or product you want to assign the custom template to.
  • Scroll down to the "Template" section in the settings for that page or product.
  • Select the custom template you created from the dropdown menu.
  • Save your changes.
  1. Link to the custom template:
  • To link to the custom template, you can use the "Link Lists" feature in your Shopify admin.
  • Go to "Navigation" in your Shopify admin and create a new "Link List."
  • Add a new link to the custom template by selecting "URL" as the link type and entering the URL of the custom template.
  • Save your changes and the link to the custom template will now be accessible from your storefront.


By following these steps, you can successfully link to a custom template in Shopify and customize the design and layout of specific pages or products on your online store.