WebsiteBaker Support (2.8.x) > Templates, Menus & Design

WB Menu vs. Own Menu

(1/3) > >>

arrow345:
Hi everyone,

I'm having a little issue with the menu. On my normal site, it looks like so:

www.mcoenvironmenta l.com


However, using WB, it has been showing like this:

http://mcoenvironmental.com/wb/pages/team.php


I'm using the same CSS file on both. I'm guessing it has to do with the way WB sets up its menu, but I'm not sure. Any ideas?

Thank you as always,

Arrow

Hans:
second link: 404 error...
Hans

nibz:
I think the correct link is: http://mcoenvironmental.com/wb/pages/about-us/team.php

marmot:
Hi,


--- Quote from: arrow345 on May 25, 2012, 10:34:31 AM ---http://mcoenvironmental.com/wb/pages/team.php
I'm using the same CSS file on both. I'm guessing it has to do with the way WB sets up its menu, but I'm not sure. Any ideas?

--- End quote ---
I guess the link should be: http://mcoenvironmental.com/wb/pages/about-us/team.php
One Problem for sure is, that you are not loading the menĂ¼ .js file.
Firebug claims: http://mcoenvironmental.com/wb/pages/about-us/tinydropdown.js is not found.

regards

nibz:
And i think you're trying to implement a sort of superfish menu.

You didn't implement the UL class and id.

Try replacing your showmenu2 code with the following:


--- Code: ---show_menu2(
        $aMenu          = 1,
        $aStart         = SM2_ROOT,
        $aMaxLevel      = SM2_ALL,
        $aOptions       = SM2_ALL|SM2_PRETTY,
        $aItemOpen      = '[li] [a][menu_title]</a>',
        $aItemClose     = '</li>',
        $aMenuOpen      = '<ul id="menu" class="menu">',
        $aMenuClose     = '</ul>',
        $aTopItemOpen   = false,
        $aTopMenuOpen   = false
        );

--- End code ---

And what marmot is saying, the problem is that you don't use <?php echo TEMPLATE_DIR; ?> so the right DIR will not be found.

You have to point to your JS file just like you pointed to your CSS file.

See docu: http://www.websitebaker2.org/en/help/designer-guide/adding-template-functions.php

Navigation

[0] Message Index

[#] Next page

Go to full version