By BilldaCat on
I'd like to put some icons next to my primary navigation items, but there's no field in Drupal to support this. Would this involve hacking up the menu module, and if anyone has done this, any tips?
I'd like to put some icons next to my primary navigation items, but there's no field in Drupal to support this. Would this involve hacking up the menu module, and if anyone has done this, any tips?
Comments
Each link has an id or
Each link has an id or class. You can simply use css to assign properties to those ids/classes.
Theme based solution
In your theme's page.tpl.php file, primary links are displayed using varying methods.
You can edit this file and make it output unique ID's per link. The example code assigns ID's based on position (primary_link_1, primary_link_2,...)
Then you can use CSS to decorate your links with any icon you choose.