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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Make Menu Show Only Two Levels
  • Print
Pages: [1]   Go Down

Author Topic: Make Menu Show Only Two Levels  (Read 14663 times)

Offline Fisherman

  • Posts: 45
Make Menu Show Only Two Levels
« on: September 25, 2014, 05:33:35 PM »
Hello,

How can I get the menu to only show 2 levels. Parent, Child and no subs?

Thanks
Logged

Offline Fisherman

  • Posts: 45
Re: Make Menu Show Only Two Levels
« Reply #1 on: September 25, 2014, 06:08:17 PM »
Do I change this and how?

Code: [Select]
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul class="nav">'); ?>
Thanks again
Logged

Offline Fisherman

  • Posts: 45
Re: Make Menu Show Only Two Levels
« Reply #2 on: September 25, 2014, 07:05:57 PM »
Solved.

In the css...

Changed this:
Code: [Select]
.nav li li.hover ul {
    left: 100%;
    top: 0;
}

to this:
Code: [Select]
.nav li li.hover ul {
    display: none;
    left: 100%;
    top: 0;
}
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Make Menu Show Only Two Levels
« Reply #3 on: September 25, 2014, 07:16:27 PM »
To late?
You have found this?
http://www.WebsiteBaker.org/forum/index.php/topic,23012.0.html

Something like this could be the right one
Code: [Select]
<?php show_menu2(0, SM2_ROOT, SM2_START+1, .... 
Logged
https://onkel-franky.de

Offline Fisherman

  • Posts: 45
Re: Make Menu Show Only Two Levels
« Reply #4 on: September 25, 2014, 11:04:35 PM »
Thanks DBS! That is a better solution. Doing it now.
Logged

Offline Fisherman

  • Posts: 45
Re: Make Menu Show Only Two Levels
« Reply #5 on: September 25, 2014, 11:24:24 PM »
This was a good learning exercise but we decided to let all of the subs show in the menu. They won't be that long anyway since they're broken up into categories. Thanks for the link. I've bookmarked it.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Make Menu Show Only Two Levels
 

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