Custom page template section showing same image

Hi. I created a custom page template with sections using the code editor. I needed the same section repeated in the page template. For example:

{% section ‘shop-the-look’ %}

{% section ‘shop-the-look’ %}

{% section ‘shop-the-look’ %}

{% section ‘shop-the-look’ %}

When I edit a section and add my image, all the sections change with the same image. The sections seem to be linked and they all show the same setting and image as the first one I edit.

I am using the Prestige premium Shopify theme.

I would greatly appreciate any help and feedback. Thank you so much!

@ZakAlexander , If you are using Shopify 2.0 then it’ll be easily managed.

If you are using an old theme of Shopify then you have to create 4 different sections with the same code and then you have to call those. By doing this they’ll not override each other.

Hi @Akibhusen , I have the latest Shopify. Do you mind explaining this a little further?

I would like about 20 of the same section on one page I am creating. The theme that I am using does not let me add sections to individual pages that I created, so I created a custom template.

Are you using Skype?

Connect me on skype, share your screen and I’ll guide you accordingly.

If your theme is a 2.0 theme it’ll be using .json files in your templates folder instead of .liquid files. Just based on what you posted here, it looks like you’re using static sections since you have to call them all individually, @Akibhusen is saying that if you want different content you’ll need to copy the code from your “shop-the-look.liquid” file and paste it into 3 additional files (shop-the-look-2, shop-the-look-3, etc) and then call those in your page template:

{% section 'shop-the-look' %}

{% section 'shop-the-look-2' %}

{% section 'shop-the-look-3' %}

{% section 'shop-the-look-4' %}

Then their content will render differently.

1 Like

@Ninthony , yes correct. If @ZakAlexander not using a JSON template then he has to create 4 different sections and call the them in static section.

Hi @Ninthony thanks so much for your reply. So you’re saying I have to create new sections in the sections folder and copy the code but name the section something different? That sounds like it makes sense. Thanks again.

That worked like a charm. Thank you @Ninthony !!