This plugin doesn’t handle the saving of the attributes, it only shows them. WooCommerce strips the HTML, but there is a work around. You can use HTML Character Entities to get some HTML to show up in the value of your attributes.
For example, to add an HTML link, use this (change “YOUR LINK TEXT” to your own):
<xmp><a href="#">YOUR LINK TEXT</a>
</xmp>
Add bold text like this:
<xmp><strong>BOLD TEXT</strong>
</xmp>
Add an image like this (edit YOUR_IMAGE_URL.png):
<xmp><img src="https://YOUR_IMAGE_URL.png" alt="" />
</xmp>
Important note: If you later edit this product, the HTML will be reverted back to regular HTML and then when you click “Update” to update the product, the HTML will be stripped. So the workaround to this is, if you ever have to edit this product later, go through the attribute values and replace every <
with <xmp><
</xmp>, and replace every >
with <xmp>>
</xmp>
-
This reply was modified 8 years, 2 months ago by
isabel104.
-
This reply was modified 8 years, 2 months ago by
isabel104. Reason: Trying to display HTML character entities without parsing
-
This reply was modified 8 years, 2 months ago by
isabel104.