Text columns with images on product page.

jecbon
Excursionist
38 0 9

I'm want to add text columns with an images section at the end of a product page. I tried following the same process as you would with any other page by adding the following code to the template file:

{% section 'newsletter' %}

This does not work on a product page. I add it to the bottom of the product.template.liquid I get the error of :

"Liquid error (sections/product-template.liquid line 310): Cannot render sections inside sections"

 

I cannot find any other solutions to this on the internet

Replies 3 (3)
Sushant
Shopify Partner
3 0 0

Hi,

Every theme is different. You'll need to have a look at the structure of the theme.

Anything that is to do with the product page, starts from a template file called "product.liquid".

You can try and add your newsletter section snippet in this file.

jecbon
Excursionist
38 0 9

Hey, im using the debut theme. 

jecbon
Excursionist
38 0 9

 and yes ive tried adding "{% section 'newsletter' %}" to product.liquid and it does not work