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.
By mcdoolz on
I want to put one of my font awesome icons in a menu_local_action.
What's the best method to do this?
For the record, I've already got them showing CSS classes, but I do not want the icon showing in a :before; I would like it to be part of the link.
Solved:
Found the thread for Drupal 6:
http://drupal.stackexchange.com/questions/9286/html-in-a-hook-menu-title...
So I added 'options' => array('html'=>true) and I now have fontawesome icons in my menu action links.