- Issue created by @Thomas Kaisuka
- 🇮🇳India ravi kant Jaipur
@Thomas Kaisuka
Are you using https://www.drupal.org/project/bootstrap5 → This module doesn't work for my theme, either (Notech, purchased from Themeforest). After a lot of fiddling and no joy, I've uninstalled it. A shame.
- 🇮🇳India ravi kant Jaipur
The menu attributes also not adding for me in Olivero theme. I am using Drupal 10.2.3.
- 🇮🇳India Rajan Kumar@2026
Hi @Thomas Kaisuka
This is work for me you may be change bootstrap5 version hare attached screnshot
- 🇱🇹Lithuania vibrasphere
The module doesn't work with main navigation that ships with Drupal installation and using the bootstrap5 sub-theme, but it does work with custom created menus. Link classes apply for my custom menus, but not for main navigation.
Working alternative https://www.drupal.org/project/link_attributes →
Also the parent ul class gets renamed from .nav to .menu with menus_attribute, but stays .nav with link_attributes (all tested on bootstrap5 sub-theme)
- 🇺🇬Uganda Thomas Kaisuka
This sounds like the viable option for the Boostrasp 5 subtheme https://www.drupal.org/project/link_attributes → .
Problem solved for me now.
- 🇺🇸United States dmudie
I found that I needed an "is-active" class on links (the anchor) for Bootstrap 5 if the item (the list item) is in the active trail. I achieved this in a custom template for the menu like so:
{% if item.in_active_trail %} {{ link(item.title, item.url, menu_attributes|merge({'class': 'is-active'})) }} {% else %} {{ link(item.title, item.url, menu_attributes) }} {% endif %}
Just adding this comment here in case it helps someone.
- 🇪🇸Spain xiaoo
#9 patch don't work in Bootstrap5 and Drupal 10.3.6 (php 8.3.12)