Solved

Static Sections on multiple pages with different content

Marius_vo
Visitor
3 0 1


Hi,

I'm looking for the most efficient way to create sections that I can use on static pages, without having to make a new section file for every single section and render that separately.

I want to create two (or more) landingpages with the same sections but different content. 

1. I created a new page + template: page.landingpage01

2. I created a new custom section: my_icons-with-text.liquid

3. I included the section on the page template: {% section 'my_icons-with-text' %}

 

On a second page.landingpage02 I'd like to use the same section my_icons-with-text.liquid but with different content. How to fix that?

 

Thanks a lot!

 

P.S.: Can't wait for the New Store Design Experience

 

Greetings

Marius

Accepted Solution (1)

KetanKumar
Shopify Partner
36839 3635 11972

This is an accepted solution.

Hello, @Marius_vo 

Welcome to the Shopify community!
and Thanks for your question.

yes you can do it 

make sure use a different page temple and different section name 

my_icons-with-text.liquid

if you need 1 more 

my_icons-with-text1.liquid

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

View solution in original post

Replies 3 (3)

KetanKumar
Shopify Partner
36839 3635 11972

This is an accepted solution.

Hello, @Marius_vo 

Welcome to the Shopify community!
and Thanks for your question.

yes you can do it 

make sure use a different page temple and different section name 

my_icons-with-text.liquid

if you need 1 more 

my_icons-with-text1.liquid

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Rachelle_
Shopify Partner
3 0 2

@KetanKumar  Creating multiple files with the same schema sections, wouldn't this slow down the site? Seems very messy on the back end as well to have numerous duplicate sections "my-icons-with-text, my-icons-with-text-2, my-icons-with-text-3, my-icons-with-text-4" multiplied by each page that I am building. There has to be a way to be able to create sections blocks,  without actually duplicating the section template? My main concern is bogging down the speed of the site for users. Do you know what the "file" limit is? If there is no alternative solutions?

KetanKumar
Shopify Partner
36839 3635 11972

@Rachelle_ 

yes your have easy to manage now all section add to your other page

Shopify store 2.0 its new feature added 

https://www.shopify.com/partners/blog/shopify-online-store

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing