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.
Hello. Right now, I'm trying to surface a menu in the content section on my page as a response to a user request for more visibly displaying the specific content in an area of our website.
Is there an easy way to:
- Show all the items in the list automatically without expanding the menu and without having to force it open with CSS
- Disable the on-click submenu expanding. Right now, I'm forcing the submenus to display:block, but when someone clicks the LI tag it's nested in, the item just turns italic, representing that the submenu is "opening". You have to click it a second time to go to the page.
I guess, in summary all I really want is to display a menu as an unordered list of links with no animation.
Thank you!
Comments
Comment #1
loopy1492 CreditAttribution: loopy1492 commentedComment #2
othermachines CreditAttribution: othermachines commentedUnless I'm misunderstanding, this sounds like a theming-related question. AFAIK Menu Block outputs HTML and provides a few extra theming functions (more about this in the README).
Comment #3
loopy1492 CreditAttribution: loopy1492 commentedIt is the Javascript which is causing the >click< to respond with opening the sub-menu rather than opening the link. I don't see any way of turning off that feature in the menu settings or with the theme... at least without changing it for ALL menus by changing the template.
Comment #4
loopy1492 CreditAttribution: loopy1492 commentedI disabled the DHTML Menu module and Drupal stopped trying to collapse my menus. It would be nice if we could disable DHTML Menu for specific Menu Blocks instead of wholesale across the board, but I guess that's a concern for the DHTML Module and not Menu Block.
Comment #5
loopy1492 CreditAttribution: loopy1492 commented