How to add code to only one product page?

I have been editing the code on my store to insert subtitles under the product name and an image as a product description. But the changes show up on all my products, how do I just apply the code to one product?

1 Like

@BlakeLouis

To do this you have to create a new product template for that specific product. Later in the future, you apply the same layout for other products also if you want.

When you create a new template it will appear on the right sidebar in admin, where you can select your desire template.

You can follow the instruction in the following guide and do the changes with a new template and select specifically for that product.

https://shopify.dev/tutorials/customize-theme-create-alternate-templates

Hope this helps.

Thanks!