WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Newb Menu Question
  • Print
Pages: [1]   Go Down

Author Topic: Newb Menu Question  (Read 3976 times)

kevkirkpatrick

  • Guest
Newb Menu Question
« on: December 09, 2008, 06:41:16 AM »
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.
Logged

erpe0812

  • Guest
Re: Newb Menu Question
« Reply #1 on: December 09, 2008, 07:47:10 AM »
Please try this call:
Code: [Select]
<?php show_menu(0); ?>and read the help pages

rgds

erpe
« Last Edit: December 09, 2008, 07:48:56 AM by erpe »
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Newb Menu Question
« Reply #2 on: December 09, 2008, 12:24:58 PM »
Hello and welcome to WebsiteBaker,
please try this show_menu2 call:
Code: [Select]
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_TRIM,&#39;[li][a][menu_title]</a>&#39;, &#39;</li>&#39;,&#39;<ul id="mainmenu">&#39;,&#39;</ul>&#39;,false ,false); ?>
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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

kevkirkpatrick

  • Guest
Re: Newb Menu Question
« Reply #3 on: December 16, 2008, 01:06:11 AM »
<?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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Newb Menu Question
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2