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 »
  • How to make parent menu unclickable?
  • Print
Pages: [1]   Go Down

Author Topic: How to make parent menu unclickable?  (Read 11399 times)

daydreamer

  • Guest
How to make parent menu unclickable?
« on: February 03, 2014, 09:00:04 PM »
Hi,

Is it possible to make a parent menu item un-clickable? but not all parent just one or two.

Thanks
Logged

Offline Tommy

  • Development Team
  • ****
  • Posts: 75
  • Gender: Male
  • WB - Development
    • FlauscheBytes
Re: How to make parent menu unclickable?
« Reply #1 on: February 04, 2014, 03:01:51 AM »
You could try to replace the link's href value with a `#`.
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: How to make parent menu unclickable?
« Reply #2 on: February 04, 2014, 08:42:54 AM »
You could use something like this in position 5:
Code: [Select]
'<li>[if( PAGE_ID == 22 ){[menu_title]}else{<a href="[url]" class="[class] navlev[level]">[menu_title]</a>}]'
Logged
https://onkel-franky.de

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: How to make parent menu unclickable?
« Reply #3 on: February 04, 2014, 01:49:56 PM »
Quote from: daydreamer on February 03, 2014, 09:00:04 PM
Is it possible to make a parent menu item un-clickable? but not all parent just one or two.

you can do this with any menu item . ;)
SM2 gives you the possibility to do it

look here to see how it can work.
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: How to make parent menu unclickable?
« Reply #4 on: May 15, 2014, 01:20:40 PM »
I use this and it works great!

Code: [Select]
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, '<li>[if( id==13 || id==0 || id==0 ){<a>[menu_title]</a>}else{<a href="[url]" class="[class] navlev[level]">[menu_title]</a>}]', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="current" class="sf-menu">');?>
Just put id's of the pages u want to be unclickable.

Hope it helps ;)

R.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • How to make parent menu unclickable?
 

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