The documentation doesn't give an example of adding classes: https://docs.joomla.org/How_to_cloak_email_addresses

<?php echo JHtml::_('email.cloak', 'xxx@xxx.com');?>

So is it possible to do this in your template index.php file?

The output should be:

<a href="mailto:xxx@xxx.com" class="no-transition icon-mail">xxx@xxx.com</a>

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.