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 BertienBoon on
I need to add a second menu in my current project (drupal 7-bootstrap-sass...)
So far I have added a region:
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<?php print render($page['mininav']); ?>
</div>
</div>
The menu is in this region. So now I have a bar at the top of the page that holds these menu links.
What I am wondering about is how I should apply the classes to the menu links themselves?
Perhaps there is a better way to approach this.
Comments
Menu Attributes
I am not sure if this will help https://www.drupal.org/project/menu_attributes
I had installed this but just
I had installed this but just figured out how to use this module. There isn't a lot of documentation, and I didn't realize I just have to add the classes to the menu links :)
Still need to try it out, but it looks like it does exactly what is needed.
Is there a simple way to add
Is there a simple way to add a class to LI?
I found this awnser on stackexchange, but I don't want to change theme functions. I would prefer a less complex solution.