Text columns with images on product page.

jecbon
Explorer
60 0 23

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
62 2 15

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.

Any Likes and Accept as Solutions are greatly appreciated✌ Having trouble? Hire us! https://seventhtriangle.com/
jecbon
Explorer
60 0 23

Hey, im using the debut theme. 

jecbon
Explorer
60 0 23

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