这是我的网站:wake9/blogs/norcal-merced-wakesurfing-competition-2009/.
注意菜单项照片和结果".将鼠标悬停在它上面,您将看到子菜单项.我希望能够点击子菜单项,但主菜单项不应是页面或可点击.我能在菜单上得到这个项目的唯一方法是把它变成一个页面.有没有一种方法可以让菜单项具有内容的子菜单项,但实际的菜单项不可点击?我正在考虑使用 JQuery 删除锚标记,但这是一个真正的黑客,我想知道是否有更简单的方法.
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.
提前致谢!
推荐答案一种选择是使用 页面链接到 插件并将主链接设置为 '#' .我试过这个,它在我的博客中有效.
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.
更多推荐
如何防止在 Wordpress 中单击带有子项的主菜单项?
发布评论