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.
I have navbar-toggle classes added to main menu items that should not have them. The same thing happens in other menu's for example a footer menu.
I assumed it had to do with the custom theme i'm developing but it still happens with the default Bootstrap theme.
Tried to turn of menu related modules and switch back to the default theme but it is still happening. I have yet to find the cause so I hope someone has suggestions what could be causing this.
Piece of menu just to clarify.
<li class="expanded navbar-toggle dropdown" id="toggle_icon">
<a href="/url" id="toggle_icon" class="navbar-toggle dropdown-toggle" data-target="#" data-toggle="dropdown">Periodes
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="first expanded"><a class="nolink"><i class="fa fa-clock-o" aria-hidden="true"></i>Periodes</a></li>
<li class="last leaf"><a href="/url">Periode overzicht</a></li>
</ul>
</li>
Comments
Comment #2
markhalliwellMy guess is that there is some custom code, somewhere (perhaps even a custom module or template), in your site that is adding these attributes to the menu item/link.
I cannot help you as this does not happen "out-of-the-box" in any way.
Comment #3
markhalliwellClosing per https://drupal-bootstrap.org/api/bootstrap/docs%21Contributing.md/group/...
Reason: site specific
Comment #4
danon1981 CreditAttribution: danon1981 commentedThanks for your reply and the great module.
There is no custom code or custom module that interfered with menu's. I'm not entirely sure if it is the cause of the behavior but it seems to be related to the menu attributes. After disabling the module and rebuilding the links that where acting up the links are fine.