Menu place holder
Permalink 1 user found helpful
Hi everyone,
I'm using a custom made menu with subitems, that completely depends on CSS (no JavaScript). I want some of my 'main' items, to NOT be a link, just a place holder to hover for opening my submenu.
I found the 'javascript:void(0)' solution, but that doesn't work for me, since I want the menu to open on mouse-hover, not click.
So, is there a way to create menu-items that are NOT links, just place holders? If so, how do I do it? :)
Thanks!
Tom
I'm using a custom made menu with subitems, that completely depends on CSS (no JavaScript). I want some of my 'main' items, to NOT be a link, just a place holder to hover for opening my submenu.
I found the 'javascript:void(0)' solution, but that doesn't work for me, since I want the menu to open on mouse-hover, not click.
So, is there a way to create menu-items that are NOT links, just place holders? If so, how do I do it? :)
Thanks!
Tom

Anyone? :)
You could look at jordanlev's improved autonav view, then use that as the basis for a custom view that has the html and classes you want.
https://raw.github.com/jordanlev/c5_clean_block_templates/master/aut...
Also, not your issue, but there is some discussion on subnav menus at http://www.concrete5.org/community/forums/usage/subnav-url/... that may be helpful.
You could also redirect so a click on the parent item you don't want clicked would go to the first child item in the menu.
https://raw.github.com/jordanlev/c5_clean_block_templates/master/aut...
Also, not your issue, but there is some discussion on subnav menus at http://www.concrete5.org/community/forums/usage/subnav-url/... that may be helpful.
You could also redirect so a click on the parent item you don't want clicked would go to the first child item in the menu.
How do I redirect?
I've tried the 'Alternative URL', but that doesn't send the user to the first child item..
I've tried the 'Alternative URL', but that doesn't send the user to the first child item..
Using the javascript void,
You can use display attribute.
example(
.ul.submenu{display:none}
.ul.sbumenu:hover{display:block;}
)
You can use display attribute.
example(
.ul.submenu{display:none}
.ul.sbumenu:hover{display:block;}
)
Anyone have other solutions, maybe?