Create unclickable links in the navigation menu

Recommended Posts

gavred+ 6

gavred+ 6

Hi Guys,
I was just wondering if it is possible to create un-clickable links in the navigation menus. I'd like to have it so that I can select which parts of the nav menu are active links.
Thanks,
Gavin.

Share this post

Link to post

Share on other sites

gavred+ 6

gavred+ 6

Hi Guys,
Just in case anyone else was wondering how to make links in the menu un-clickable...
This is one simple method.
Download the "Page Links To" plugin.
Once installed and activated a small box appears at the bottom of every edit page in the WP backend.
Then you just need to add in the following:
the link to a site and then... onclick="return false
inside a href brackets.
I tried to add the exact code but there but it kept coming up blank...Not sure whats up there?
And the link becomes unclickable.
Hope this helps someone.