How to properly add a class to a link?
Hi there,
I was wondering if there was another way to achieve this scenario:
The HTML output of the link would have to look like <a class="classhere">Text</a>
The use case is that I am triggering a chat bot via a text link.
The way I'm achieving it right now in Brizy is via an embed - I input the HTML code in there.
However, the formatting doesn't look great and isn't consistent with the rest of the site.
Is there any other way to do this in Brizy?
Thank you!
-
Hi,
I'm not sure if this will help you, but you can attach a link to a text element and to this text element to add the CSS Class. See here. This class will be added to the text element and not to the link <a></a>, therefore I'm not sure if this will help you.
At the moment, isn't possible to add directly a class name to the link <a></a>, the best solution is using the embed element and code.Best regards,
Sandra0 -
Thanks Sandra, I opted to just use the embed for now. But please consider my initial proposal as a feature request for classes for link elements.
0 -
I was opening a thread for the same issue, any plan to add a class option for the link?
0 -
Hi there,
I will inform our team regarding this suggest and they will investigate it. At the moment, I can't say if we will release this feature soon but I can promise that we will investigate and explore this possibility.
Thanks!
Best regards,
Sandra0
Please sign in to leave a comment.
Comments
4 comments