I’ve made my own section for a collection template which includes blocks. I would like these blocks to include different content in different collection templates, yet, when I set content for one template in Theme Editor, settings persist across all my templates. Can this be bypassed for desired result?
Hi @Jerzy ,
First, you need to check the selected collections the corresponding templates. Refer:
Then you just need to change in Customize, it will work separately for each template.
Thanks for your response. I have separate templates assigned to separate collections, yet section blocks are the same throughout all templates, including the default. Is there anything within the section schema that could cause this behavior?
Hi @Jerzy ,
Are you using OS1.0 or OS2.0 theme
It seems I’m on OS1.0, my template file is a series of such Liquid statements:
{% section ‘collection-template’ %}
Hi @Jerzy ,
If you use OS1.0, you need to add new section files. After that, declare a new section name for new template again, it will work fine.
Because with OS1.0, each section is saved only with fixed data, so if you want to save with a new template, you need to create a section and copy the entire code.
Hope it helps!
Thanks @LitExtension ,
upon realizing I am not taking full advantage of OS2.0, I migrated my template files to OS2.0 and now it’s all working fine. Thanks for pointing this out for me.
I found a guide on how to migrate here: https://shopify.dev/themes/os20/migration
