Hello there,
Not entirely sure what I've done however for some reason the drop downs for child menu items only appear when you are on a page contained in the menu tree if that makes sense. For example if I'm on the site homepage the drop downs below 'Account' would not appear.
Any idea how I can debug this issue?
I've pretty much disabled all modules that I *think* might affect the menu system. Any body had a similar problem?
Thanks
Dan
Comments
Comment #1
markhalliwellWell, the bootstrap base theme automatically converts the
$main_menuinto$primary_nav, so that it always expands. Are you using$main_menuor a custom render of the tree?Comment #2
tr33m4n commentedI'm using both
$primary_navand$secondary_nav, which is where the drop down lies. I haven't made any modifications to the menu rendersComment #3
tr33m4n commentedHello again,
I've setup a demo site to illustrate the issue, the site is a clean install d7 (despite the url containing drupal8)... You will notice that no dropdown arrows are displayed on the home page until you actually click the menu link "Test 1". Is it meant to be like this by design? If so how do I override it to always display the drop down?
http://drupal8.daniel-doyle.co.uk/
Cheers
Comment #4
markhalliwellThis is how it is designed currently. I'm marking this as a dup of #1893532: [bootstrap][policy][7.x-3.x] Navigation/Menus. I believe there is an example there that can show you how to override, if not, the question there.
Comment #5
ainz commented@tr33m4n regarding your question
The reason this is happening on your homepage is because you haven't enabled "Show as expanded" in your menu item. For each of the menu items that you want to be dropdown menus on the homepage you have to go to Structure > Menus > Main Menu (or whichever menu) > Click on the parent and check the "Show as expanded" checkbox. This issue has nothing to do with bootstrap but rather you just need to enable this setting to fix your issue.
Cheers