Custom Liquid Through Metafield

How to add custom liquid through metafields?

I am facing a problem regarding collection page content, whenever i am updating any content on my collection page i have to create a new template for each collection page because i need to add much content & links in the collection for seo.

So, if there is an option to add custom liquid via metafield, then my problem is solved.

If it is possible, so please help me!

Hi @Bhanupratap ,

what kind of content are you adding? Do you need to add custom liquid code? You mentioned that you need to add much content & links for the collection. I assume that this can be achieved through rich text metafield. What do you think? Or is there anything special why you need to add custom liquid code?

As far as I know, adding custom liquid code through metafields isn’t possible (only JSON).

Hope this helps!

Hi @Niki_K
Thanks for your reply!

Is put some clickable links and images is possible with rich text?

Hi @Bhanupratap ,

you can add links in the rich text metafield but not images. You would need to use another metafield type — file metafield that supports images. In other words, you would end up having two metafields. By the way, you can also learn more about metaobjects that could probably help you solve your problem as well. If interested, I have recently published an article: How to leverage metaobjects for your Shopify store?

If you have any further questions, let me know!