I wonder if there is a simple solution before I go ahead and create a lot of work for myself.
I have a few different collections, all using the default collection template right now. However, being new to Shopify, I’ve discovered that if I add some rich text or an image, for example, then the content of that applies to every single collection, rather than being specific to the collection in view.
Is there a simple way, using meta fields perhaps, where I can use one template, but different content specific to the collection?
Yes, you can use meta fields for collection with a Shopify app. Where you can select to which specific collection you want to create that metafield and access it using code.
If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme
For simple text a work around, depending on themes that have the feature, is to use custom-liquid blocks/section to make liquid logic to parse keywords, or shortcodes out of collection descriptions.
Or merely based on the collection handle
{% case collection.handle %}
{% when 'shirts' %}
Shirt info
{% endcase %}
Note here for long logic you want to code it outside of that small text input in the theme visual editor.
This is in the context of the visual theme editor correct when you edit a template correct?
And not in the context of resources(collections) when you edit the rich text description of a collection itself in it’s own admin all other collections are getting the same content? As that would be a serious issue indeed and you need to contact support.
You understood correct in that I’m trying to edit the collection template to have collection specific information appear when a customer views a specific collection, rather than having generic text apply to every collection.
Ideally, I don’t want to have to create a new collection template for each collection just to have specific additional information on the collection page, but I think I might have to do that.
Your solution did work, thank you. However, I think with my lack of coding ability and that I cannot see this solution working for the default blocks, I’ll just have to wait for the metafields to come to collections before I build out my collection pages.
Thank you for your detailed and easy to follow reply.
Hi Paul, I have the same question as Rosalind. I am just wondering now that the metafields for Collections is available, could you please show me how to add a different image to the different collection page? such as what are the exact steps? I am so not tech savvy! Thank you so much!!