WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: nene on August 09, 2012, 01:08:38 PM

Title: Dropdown Menu not working well
Post by: nene on August 09, 2012, 01:08:38 PM
Hi,
My dropdown menu on http://www.senaagyepong.com/pages/about-sena.php is not functioning well. The sub-menus are suppose to show when the mouse is rolled over. But it is showing with or without the mouse roll-over.

Can anyone help me?

Thank you

Nene Nanor
Title: Re: Dropdown Menu not working well
Post by: nibz on August 09, 2012, 04:22:17 PM
Please post your Showmenu code...
Title: Re: Dropdown Menu not working well
Post by: nibz on August 09, 2012, 04:27:22 PM
I think it has to do with the fact that you don't use the Trim feature

For more info take a look at: https://forum.WebsiteBaker.org/index.php/topic,23012.0.html
Title: Re: Dropdown Menu not working well
Post by: nene on August 09, 2012, 04:48:19 PM
Thank you nibz. Pls find the code below;

<div id="nav">
   
    <?php     
   show_menu2(
                        $aMenu = 0,
        $aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '[list][li] <a href="[url]" target="[target]" class=[if(class==menu-expand){"dir"}else{""}]>[menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul>',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<ul id="nav" class="dropdown dropdown-vertical">'
); 
?>

    </div>
Title: Re: Dropdown Menu not working well
Post by: nibz on August 09, 2012, 08:59:38 PM
next time please use the forum code tags (found under the hashtag)

Edited by moderator.
Title: Re: Dropdown Menu not working well
Post by: marmot on August 09, 2012, 09:28:36 PM
Hi,

one problem for sure is that dropdown.css is not loaded. Firebug reports:
QuoteNetworkError: 404 Not Found - http://www.senaagyepong.com/templates/sena/css/dropdown/dropdown.css

regards
Title: Re: Dropdown Menu not working well
Post by: nibz on August 09, 2012, 09:49:34 PM
My bad. The css is the fix. Mine is just limiting the number of levels for the pages. (and that's not really the solution if you want a dropdown).

(removed my code hint)