I can't get the drop down menus to work in Drupal 7. I have hem all set to expanded, cleared caches, etc but still no luck.

Comments

thepauly’s picture

Nevermind, I just had to put the menu into the primary menu block and it started working.

Kreativs’s picture

I also have it placed in primary menu block, but the way it works is that if I click on a menu item it expands , it doesnt expand just by hovering the mouse over the menu item.

Any idea how to get it to auto expand when hovering the mouse over ?

antsin’s picture

Hello there,

I should make a note somewhere explain this issue. There is problem with menu (including build-in primary menu block) add on active-trail in first Drupal 7 official release. So if you want the drop down menu work properly, you might want to install Menu Block module.

itspriyank’s picture

How to place menu in primary menu block...??

itspriyank’s picture

I solved it myself and placed menu in primary block but still dropdown not working. Please help...??

bryrock’s picture

The menu will drop-down if you place it in the primary block AND also set the "Show as expanded" option for the top level items with sub-items. Then these will expand when you hover over top level items in the menu.

Holygoe’s picture

Hi,

thank you. It's help me. Install Menu Block and it start working =)

csb346’s picture

Hi all... I've installed MENU Block, but what do I have to do after? How to place menu in primary menu block?
The menuthat I wan to expand is the primary menu. I tried several configuration but nothing worked till now.

Any help please?

thamas’s picture

You do not need Menu Block module to use the dropdowns.

Go to Structure / Blocks. Look for "Main menu" block and set its region to Primary menu. That's all.

meonkeys’s picture

@thepauly, @bryrock or @thamas, does the "use primary menu region" workaround depend on what theme is being used? I'm using Bartik and I don't see a "Primary menu" region.

bryrock’s picture

@meonkeys, yes it does depend on the theme. As you've noted, different themes have their own regions defined. In this case, this particular issue and the suggested work-around was specifically addressing the BlogBuzz theme.

prajesh.madhavi’s picture

I am facing the same issue but diffrently, in my case menu is getting expanded with the theme I create it, as I change the theme the menu does not expand. using drupal 7.

bagers’s picture

thank you very much, works :)

waibiaf2’s picture

Thanks please keep it up, this information was lovely.

caiman’s picture

Issue summary: View changes

bryrocks answer ("Show as expanded") was my solution. Thank you!

edu.stringer@gmail.com’s picture

I am using Nexus template, which does not have a Primary Block option.

I have tried the Header, Content Top, and Content with no change in the dropdown behavior.

I have even installed Menu Block and suppressed Drupal’s standard menu blocks for the Main Menu.

Still no change.

Any other thoughts?

Thanks!
CH

hpkuhnel’s picture

I installed the module Jquery Update. In Setting -> Jquery Update you can adjust the jquery-version for Nexus. I selected jquery 1.7 like the demo site of Nexus and the pull down works.

rahul_’s picture

I use this code in my custom.js file =>

jQuery('#meuid li.dropdown').hover(function () {
    jQuery(this).addClass('open');
}, function () {
    jQuery(this).removeClass('open');
});

Please try, this can fix my issue .