Add any link to your WordPress navigation menu with Page Links To

For adding (redirection) links to the WordPress menu, see also Page Lists Plus

Adding custom links to the navigation menu of a WordPress site is a common need, but not easy to do in the current version of WordPress (2.6). Sometimes it is done by editing template files, which is not good.

“Page Links To” is a plugin by Mark Jaquith that offers a nice and quick workaround to do this without modifying any code.

How to

Let’s say that your navigation menu does not have a “Home” link and that you want to add one:

Home page without a Home link in the navigation bar

Step 1

Install and activate “Page Links To”: txfx.net/code/wordpress/page-links-to

How to install a WordPress plugin

Step 2a

Make a new page (not post) with the title you want to appear on the menu — “Home”, “Home Page”, your site’s name or whatever else you prefer. Here I’m using the site’s name:

WordPress 2.6, Dashboard, Write, Page

You don’t need to add any text to the page. You can if you want, but no one will see it. :-) Also, the permalink of the page is not relevant: no one will see that either.

Step 2b

Scroll to the bottom and enter the URL of the home page:

WordPress 2.6, Dashboard, Write, Page, Page Links To, Point to this URL

Scroll up again and click Save.

Done!

Refresh a page to see the menu with the new item on it:

Now, every time the new link is clicked, it will redirect to the home page. The redirection is transparent to visitors, and the permalink of the page does not appear anywhere. When the link is hovered over, the status bar of the browser displays the URL of the final target — in the example above: http://op111.net/

Notes

  • PAGE ORDER. If the link does not apper in the position you want, you can move it by changing the Page Order number of the new page or/and of the other pages that appear on the menu. (See above, penultimate screenshot.)
  • PAGES WIDGET. If you use the Pages widget and don’t want the link to appear there, go to Design, Widgets, click to Edit the widget and add the page ID number to the exclusion list. (How do I find page ID numbers?)
  • TOOLTIPS. ADDED 2008-10-30. If you want to change the default WordPress link description to something more useful (see above, last screenshot), see: Add meaningful tooltips to your WordPress menu links with Page Menu Editor - op111.net

A few more words

Adding links to the menu is just one possible application of “Page Links To”, which is a plugin made to facilitate page redirection in general — see its page for some other common scenarios. Once you install it, you will probably find more uses for it.

Thanks for reading!

Links

THE PLUGIN

OTHER

Responses (17)

Pingbacks (4)

  1. [...] Add any link to your WordPress navigation menu with Page Links To [...]

  2. [...] Reply · View longjasonm: Add any link to your Wordpress navigation menu w/ this plugin http://op111.net/57 2009-03-15 05:41:14 · Reply · View ronhekier: @LockwoodChris Want display tweets [...]

  3. [...] already written about two WordPress plugins that help you improve page menus: Page Links To and Page Menu Editor. In the last few months I have been using another plugin that, for me, has [...]

  4. [...] Re: WordPress – make page go to link This plugin should do the job just fine -> http://op111.net/57 [...]

Comments (13)

  1. Thank so much for this post. I’ve been trying to figure out how to get a “home” page on my blog. This was so easy with your plug-in. Thank you, thank you, thank you.

  2. Minz says:

    thanks for the tip! it helped me how to redirect the menus! : )

  3. Ron says:

    Thank you so much for this post..:) ive got mine working now for my subscribe link..:)

    Good Job!

  4. Thanks, the plugin looks extremely easy to install and implement, just what I have been looking for.

  5. Studio Kits says:

    Thanks! I’ve been looking so long for this kind of plugin. I’m going to use it for a link to a forum application…
    Thanks again!

  6. Dan says:

    Excellent! TOO EASY! thanks for the help!

  7. demetris says:

    @Dan: Cheers!

  8. Daniela says:

    I just did it! It works! So easy and well explained! Thanks! :)

  9. demetris says:

    @Daniela: Glad to hear that. Thanks for stopping by!

  10. Howdy,

    Just to say thank you for the plugin, it works great and also on the latest WP versions 3.0.5.

    Matt

  11. Seth Caudill says:

    Thank you so much… I really needed this plugin

  12. Marianne says:

    I have been looking for this for ages! My hero! *goes down on knees and bows*
    Still works great in WP 3.4

  13. Hey would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot quicker then most. Can you recommend a good web hosting provider at a reasonable price? Thank you, I appreciate it!

Comments are closed.