How to update rich text for each collection page?

How to update rich text for each collection page?

RobbieBursAus
Visitor
1 0 1

I Need help inn adding rich text block for each of my collection pages. For example I have Diamond, Ceramic and I have added Rich Text to the template but the same text goes across all pages. I just want the text to be about the specific page 

Replies 2 (2)

ZestardTech
Shopify Partner
5724 1050 1384

Hello @RobbieBursAus 


Rich text content to your collection pages using metafields in Shopify. Here's how you can achieve it:

 

1.Create Metafields:

 

- Go to "Products" > "Collections" in your Shopify admin.
- Select the collection for which you want to add unique content.
- In the collection settings, look for the newly created metafield (e.g., "Collection Description" or "Rich Text Content").- Enter your unique rich text content for this collection.

 

2.Display Metafield Content on Collection Pages:

 

- Edit your collection template file (e.g., collection-template.liquid).
- Use liquid code to retrieve and display the metafield content. Here's an example:

 

<div class="rich-text-collection">
{{ collection.metafields.custom.collection_description }}
</div>

 

Replace custom with the actual namespace and key of your metafield.

 

4.Save and Preview: Save your changes, and then preview your collection pages. Each collection should now display the unique rich text content you added using metafields.

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
naveedtaji
Tourist
6 1 3

I have followed all the steps. I am getting an awkward code on front end "{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"I am testing this rich text field","bold":true}]},{"listType":"unordered","type":"list","children":[{"type":"list-item","children":[{"type":"text","value":"Easy DOing","bold":true}]},{"type":"list-item","children":[{"type":"text","value":"Easy work","bold":true}]}]}]}"

I am using publisher theme and i entered the code at the bottom of "main collection product grid liquid"