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.
Hi, I would like to have a "select" style option that convert the ul menu in a select menu like this.
<select>
<option>Link1</option>
<option>Link2</option>
</select>
Is there a reason why I can't find any module with that feature?
Actually I use the jquery.mobilemenu.js technic but it doesn't work on a page that load a video from project/mediafront module.
Thank you!
Comments
Comment #1
deggertsen CreditAttribution: deggertsen commentedI did what you want to do by adding the following code to my template.php file. You have to add the jquery.mobilemenu.js (https://github.com/mambows/mobilemenu) to your theme's js folder as well. It would be good to have some responsive themeing like this build into Nice Menus.
Obviously you can change the width at which the site changes the menu to a select menu and you can change the top option text.
Comment #2
deggertsen CreditAttribution: deggertsen commentedOops, I posted the wrong link to the mobilemenu javascript library. Here's the correct one. https://github.com/mattkersley/Responsive-Menu
Comment #3
tripper54 CreditAttribution: tripper54 commented@deggertsen, thanks for the heads up, that's a great little library. It solved my problem perfectly.
Someone should make a module for it...
:)
Comment #4
xiukun.zhou CreditAttribution: xiukun.zhou commented