views:

143

answers:

2

Here is my site: http://wake9.com/blogs/norcal-merced-wakesurfing-competition-2009/.

Notice the menu item "Photos and Results". Hover over it and you will see sub menu items. I want to be able to click on the sub-menu items but the main menu item shouldn't be a page or be clickable. The only way i could get this item on the menu was to make it a page. Is there a way to just have a menu item that has sub menu items to content, but the actual menu item isn't clickable? I was thinking about using JQuery to remove the anchor tag, but that is a real hack and I want to know if there is an easier way.

Thanks in advance!

+2  A: 

One option would be to use Page Links to plugin and set the main link as '#' . I tried this and it works in my blog.

Shoban
great answer! this is exactly what i needed with no hacking. I'm new to WP so i'm not familiar with all of the popular plug-ins the kids are using these days :) thanks!
DJTripleThreat
A: 

What about using the jQuery.remove to remove the element?

something like this:

function removeLinkAttrib() {
  var attrib =  jQuery(#menus).find("a").attr("Photos and Results");
  jQuery(attrib).remove;
}

I'm not sure if $(attrib).remove; will work, but you get the picture :)

Steven
Thanks for the answer but i wanted to avoid using a hack. One of the issues that i was having was when i would try to reference a js file that had jquery in it, it would be inserted into the html BEFORE jquery.js... so as you would expect, i would get a js error because $ or jQuery wasn't defined.Thanks anyway!
DJTripleThreat