Something that was annoying me on one of my sites was that custom links I’d set up in my main navigation menu would open in the same tab, replacing my site in the tab.
I prefer links to external sites to open in a new tab.
I thought that this opening in the same tab thing was a peculiarity of WordPress.
Turns out you can indeed open any menu links in a new tab if you want to.
There’s a hidden setting you need to access to enable this feature.
Go to to the Appeance -> Menus page. At the top right of the screen is a button called Screen Options. Click it and a hidden menu of options will roll down from the top of the page.
Tick the Link target checkbox and click the Screen Options button again to close the menu.
To make any item in your custom menu open in a new tab, click the little down arrow at the right of your menu item to expand it.
You’ll now see that there’s a new Open link in a new tab checkbox below the Navigation Label box.
Tick that box if you want the link for that menu item to open in a new tab.
Repeat for other menu items you want to open in a new tab.
Save your menu.
That’s all there is to it!
Filed under: WordPress