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.
Hey,
I suggest adding two lines of code to the bootstrap_menu_link function:
$ Options ['attributes'] ['data-toggle'] = 'collapses';
$ Options ['attributes'] ['data-target'] = 'navbar-collapse.in';
To enable the menu to be closed on mobile screens for one web page
Comments
Comment #2
markhalliwellThis is site level customization. It doesn't belong in the base theme.