There are times when you may want to add a link into your WordPress menu that is not a page in your site. Since I build a bunch of Custom WordPress Sites for those in the real estate industry, they sometimes want to link to a home search function that they already own on a different domain. But, when someone clicks on the link, they end up leaving their site and going some other place.
However, if the custom menu link opens in a new window/tab, then your site is still there on another tab. On the normal links you place in a page or post, you would simply add a short piece of HTML of target=_blank into your link. The only problem is that inside WordPress menus, you cannot add any HTML. So how do you accomplish this? I’m glad you asked.
Here’s a quick tutorial to walk you through it quickly & easily.
Garin Kilpatrick
Thanks man! I appreciate your video, it is exactly what I was looking for! Cheers.
Jeremy Blanton
Glad to hear it man!
Patrick Healy
Great little trick Jeremy. When I originally designed the RE BarCamp NYC site this option was not available and this post reminded me to go in and update that. Thanks!
Jeremy Blanton
Awesome! Glad it helped!
Craig
This option does not appear to work, at least in WordPress version 3.5.2. It could be related to the theme template, but not sure how a template designer would be able to over-ride core WordPress logic to open in new window… and have heard of others running into the same issue who use different theme templates than my own. Used both Firefox and Chrome browsers to test and get same results; opens in same tab.
Jeremy Blanton
Hey Craig,
I think it may be your theme. I just checked on a site that is on the latest version of WP and it is still there. Try switching themes and see if the option is available. I know not all themes work with the WP menu system.
Joe
Thanks Jeremy! Great tutorial 🙂
Repiano
So simple but save me a lot of time and frustration. Than Jeremy!!
Jeremy Blanton
Thanks! Glad I could help out!