How to Create a Custom Shopify Product Page Template

If you are looking for certain ways to customize your Shopify product pages, you are at the right place. A well-customized product page portrays a unique image of your brand, giving a better user experience and generating sales-readiness.

Let’s have a look into ways to allow Shopify merchants to create and edit a custom product page. This article will lead you the way to build a template for selected or all products on your Shopify store, with or without any support from third-party apps.

Customize Shopify Product Pages within Shopify Admin

In the Shopify Admin, there are two options to customize any Shopify page, including product page templates, that are:

1) Use the theme’s default settings

customize shopify page from admin page

2) Edit the theme’s code

edit theme code shopify

The theme’s default settings require very little technical work, they are usually basic and only allow users to edit the simplest parts of your store.

3) Use default theme settings

Because of the basic nature of the theme’s default settings, let’s just go through the disadvantages first. After that, you can quickly decide whether this technique can solve your problems or not.

Default theme settings: Disadvantages

Default theme settings vary depending on the theme you choose and use for your store, but there are common adjustments you cannot make to your Shopify product page template, just with the theme’s default setups –

1) Adding new sections is not available

If you want a more informative product page having many sections featuring product descriptions, customer feedback, or demonstration video, then you should not get your hopes high as the theme’s default setup is limited in terms of design functionality.

2) The product page layout is fixed

Assuming that you are familiar with the default Shopify product page layout with a photo on the left and product description on the right.  Similar to adding new sections, you cannot alter the layout and position of elements inside the Shopify product pages.

Those are the two biggest disadvantages of the theme’s default settings.

Customize product pages with your theme’s default settings

  • Start customizing your product page template from your Shopify admin, go to Online store > Themes.
  • Click on the Customize button to be redirected to the Theme editing page.

customize shopify theme

Select the Product pages from the drop-down list and begin customizing your product page template.

customize product page shopify

Small change like the Button size, text color, cart page appearance, typography, etc. then you can do it on your own using the theme’s default setting, which requires no coding, no expert hiring, and enables you to make changes whenever required.

Edit your theme code

If the theme’s default settings are not good enough, it’s time you go deep into the theme’s code.

Of course, you need to have the the knowledge of writing the code. But it gives you the power to make any changes you want and customize your unique product page template.

Liquid, HTML, CSS, JS: Requirement

Shopify themes are written in Liquid, a coding language developed for Shopify. Along with Liquid, Shopify themes also consist of HTML, CSS, and JavaScript.

Get access to the theme’s code

  • To edit the code of your theme, from Shopify admin, go to Online store > Themes. Click the Customize button to be redirected to the Theme editing page.
  • On the Theme editing page, choose Theme actions > Edit code to have an access to the code of your theme.

edit product page shopify

Now, you can view and edit the theme’s code.

Start editing your code

Once you have access to your theme’s code, you’ll be able to change any page in your Shopify store.

In your theme files, /templates/product.liquid is the file for the product page. Editing for the theme’s code takes place here.

file structure shopify

Shopify offers detailed documentation on what you can do and how to do it inside these theme files, categorized by elements on a product page:

  • Add to cart button.
  • Varients.
  • Product page features.

If you know HTML, CSS, and a basic understanding of Liquid, you can consider following the instructions and customize your Shopify product page template on your own.

Before editing, it is recommended to make a backup copy of the theme so that there is always an option to undo all the changes whenever things go off track.

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/ on line 5420

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/ on line 5420