Ability to add CSS Classes to CTA <a> element from HubL/Custom Module
On the CTA tool, there's a "Custom CSS class" option under "Advanced options" that allows users to add CSS classes that are then applied to the <a> element. I would like for that same option to be available when using the CTA field in a custom module or the CTA HubL tag.
The extra_classes parameter works, but it adds the classes to the span surrounding the CTA and not the <a> element itself.
Use case: currently, if the user has a CTA "Contact Us" and would like to display it in three different colours, they need to create three different CTAs in the CTA Tool to assign each one a class.
If the class can be added from a custom module, then they can use the same CTA and adjust its colour at the page level.
Weitere Ideen mit folgender Beschriftung anzeigen:
Sie müssen ein registrierter Benutzer sein, um hier einen Kommentar hinzuzufügen. Wenn Sie sich bereits registriert haben, melden Sie sich bitte an. Wenn Sie sich noch nicht registriert haben, führen Sie bitte eine Registrierung durch und melden Sie sich an.