Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When creating a custom profile tpl (user-profile.tpl.php) and loading the information from content_profile module using
<?php print $profile['content_profile']; ?>
this returns a link to few each profile the user has access to.
I need to add a specific class to each one of these links. If the link is
<a href="node/24">Author Profile</a>
I would like it to be something like...
<a href="node/24" class="author-profile">Author Profile</a>
Any ideas of things to do in the user-profile.tpl.php or the template.php?
Maybe the module could add classes to these by default?