Website Building » Shopify » How Do I Add a Subpage in Shopify?

How Do I Add a Subpage in Shopify?

Last updated on October 1, 2022 @ 9:04 pm

There are two ways to add a subpage in Shopify. The first is to use the Add Page link in the Pages section of the Shopify admin.

This will create a new page that you can then title and add content to. The second way is to create a subpage template and then add it to your theme.

To create a subpage template, you’ll need to edit your theme’s code. Go to Online Store > Themes and click on the Actions drop-down menu for the theme you want to edit. Select Edit code from the menu.

In the Edit code page, you’ll see a list of all the files that make up your theme on the left hand side. Find the file called page.liquid and click on it.

You’ll now be looking at the code for your page template. To turn this into a subpage template, all you need to do is add one line of code:

This code tells Shopify that everything between it and the corresponding tag should be treated as a subpage template. So, if you add this code to your page template and then create a new page in the Pages section of your Shopify admin, that page will use the subpage template you’ve just created.

To style text in HTML using

, and tags where applicable:

How Do I Add a Subpage in Shopify?

There are two ways to add a subpage in Shopify. The first is to use the Add Page link in the Pages section of the Shopify admin.

To create a subpage template, you’ll need to edit your theme’s code. Go to Online Store > Themes and click on the Actions drop-down menu for the theme you want to edit. Select Edit code from the menu.

In the Edit code page, you’ll see a list of all the files that make up your theme on the left hand side. Find the file called page.liquid and click on it.

You’ll now be looking at the code for your page template. To turn this into a subpage template, all you need to do is add one line of code:

This code tells Shopify that everything between it and the corresponding tag should be treated as a subpage template.

To style text in HTML using

,,and tags where applicable:

PRO TIP: If you are not careful, adding a subpage in Shopify can result in duplicate content on your site. This can cause problems with search engines and may result in your site being penalized.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.