WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Newb Menu Question
(1/1)
kevkirkpatrick:
I can't get the main menu working on my site. The help docs give the example of a generic main menu like this:
<div id="navigation1">
<ul>
<li><a href="#">Disclaimer</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
but the template I have has a main menu that looks like this:
<div class="clear"></div>
<ul id="mainmenu">
<!-- Put your menu links here -->
<li><a href="index.html">Home</a></li>
<li><a href="about-us.html">About Us</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Partners</a></li>
<li><a href="contact.html">Contact</a></li>
<!-- End of menu links -->
</ul>
Here is what the site is supposed to look like:
http://princesspaper.zeroboxes.com/p/Mockup1/index.html
Here is the website baker version of the site that I can't get to work:
http://174.132.105.66/~ppi4455/wb/
Here is what I did:
<div id="mainmenu">
<!-- <ul id="mainmenu">
<li><a href="index.html">Home</a></li>
<li><a href="about-us.html">About Us</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Partners</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
-->
<?php show_menu(2); ?>
</div>
I really, really suck at html, so any help would be very much appreciated.
erpe0812:
Please try this call:
--- Code: ---<?php show_menu(0); ?>
--- End code ---
and read the help pages
rgds
erpe
Stefek:
Hello and welcome to WebsiteBaker,
please try this show_menu2 call:
--- Code: ---<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM,'[li][a][menu_title]</a>', '</li>','<ul id="mainmenu">','</ul>',false ,false); ?>
--- End code ---
Put the above snippet between
<div class="clear"></div>
-- here comes the sm2 call --
</div>
<div class="clear"></div>
<div id="slider">
Nice design by the way.
Regards,
Stefek
kevkirkpatrick:
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM,'
* [a][menu_title]</a>', '</li>','<ul id="mainmenu">','</ul>',false ,false); ?>
Thanks. That worked Stefek. Looks great now.
Navigation
[0] Message Index
Go to full version