Opening Links in a New Window with the WordPress Menu System

In WordPress, the screen options tab holds additional and helpful information in various locations across the site. In Appearance > Menus, you can show additional information such as CSS Classes, Link Targets and even custom post types to add to your menu.

Note – This menu feature was introduced in WordPress 3.0.

Let’s jump in and see how to get links to open up in a new window or tab.

First, go into Appearance > Menus.

WordPress Appearance - Menus page

Click on the Screen Options tab, typically found in the upper-right of the WordPress admin area. A screen of additional options will slide down.

Screen Options Tab in WordPress

Under “Show advanced menu properties” check the box for Link Target. The features enabled above in screen options, will show and hide elements on this current menu page.

Additional menu options found in the Screen Options tab for WordPress Menus

As you can see, there is now a link target option. Click Open link in new window/tab and WordPress will automatically add the target=”_blank” to that specific menu item in your menu.

Choosing a menu target in the Appearance - Menu screen

That’s it! Don’t forget to click Save Menu after making your changes to individual menu items.

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.