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

How to make parent menu unclickable?

(1/1)

daydreamer:
Hi,

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

Thanks

Tommy:
You could try to replace the link's href value with a `#`.

dbs:
You could use something like this in position 5:

--- Code: ---'<li>[if( PAGE_ID == 22 ){[menu_title]}else{<a href="[url]" class="[class] navlev[level]">[menu_title]</a>}]'
--- End code ---

DarkViper:

--- 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.

--- End quote ---

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

look here to see how it can work.

Roych:
I use this and it works great!


--- Code: ---<?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">');?>
--- End code ---

Just put id's of the pages u want to be unclickable.

Hope it helps ;)

R.

Navigation

[0] Message Index

Go to full version