All things Shopify and commerce
Hi, the title explains it all. I need to add a clickable hyperlink into richtext metafield. I tried following this thread -https://community.shopify.com/c/shopify-design/adding-hyperlink-to-metafield-content-for-collection-...
but upon testing, the line of code didn't convert into a hyperlink. Below is the result I got.
Solved! Go to the solution
This is an accepted solution.
All you need to do is change the meta field type to rich text in the metafield section and then you can easily link to any text refer to the screenshot below.
thanks
This is an accepted solution.
All you need to do is change the meta field type to rich text in the metafield section and then you can easily link to any text refer to the screenshot below.
thanks
Thank you!
no problem feel free to contact
But I still can't use metafield with URL type inside that link
@BillyIsgradov show me screenshot.
@Liquid_xPert_SJ I have a metaobject with URL type and mailto:test@gmail.com value. I want to create a Contacts page with links to contacts given from Metaobjects (without creating a new section for the theme). But I don't see any possibilities to do that, because I can't use URL metaobjects inside richtext, can I?
yes you cannot use url in richtext you have to choose a field related to url.
@Liquid_xPert_SJ Ok, I created a URL metaobject to keep a URL value (phone:..., mailto:...). How can I use it for creating a page template like this:
Feel free to contact with us!
Email: {{ metaobjects.market_email }}
Phone: {{ metaobjects.market_phone }}
Yes, I can create a metaobject and use it for a Page template, but I still have to create links in richtext without refering to email URL metaobject. I need only one place to keep a company email and use it everywhere.
create a custom section for this if you only need only this information, or use any preset field which can full fill your requirements. Eg, Multi Columns,
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025