All things Shopify and commerce
Hello,
How can I show a metafield with HTML tags and a link in it?
The orange part should be link to another product.
The metafield is from Wordpress short description so the value for the metafield is exactly like the one in the blue box.
I wanted to use 'rich text' type when I add definition for the metafield, but the 'rich text' type is not activated, so I couldn't use it. Is it because I use a free theme?
If the rich text is not the only way, how can I show the link?
Hello @yoonlaser You'd just use a multiline metafield type, put in your content then output it either by coding it into the theme, using a theme setting block that can use it as a dynamic source.
Or use a custom-liquid block to output it using liquid i.e. {{ product.metafields.status.replacement_html.value }} or use a url metafield type {{ product.metafields.status.replacement_url.value }} .
Note the metafield namespace "status" and keys like "replacement_html" are arbitrary name them what you want for organization.
If you need this customization setup then contact me by mail for services.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact info in signature.
Good Hunting.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
User | RANK |
---|---|
41 | |
37 | |
24 | |
24 | |
22 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023