How To Open WordPress Custom Menu Link in New Window or Tab

You may want to open a custom navigation menu link in a new window or a new tab for several reasons. For instance, if you have an external link in the menu, its a good idea to make sure that it opens in a new window.

Its really easy to force a custom menu link open in new window or tab. But to do it, you must first enable the Link Target functionality in custom menus. Go to Appearance > Menu, and click on screen options in the top right corner. Then check the Link Target option.

link target custom nav menus How To Open WordPress Custom Menu Link in New Window or Tab

Now just open the menu item that you wish to open in a new window, and select New Window or Tab, from the Link Target drop down list.

open link in new window in wordpress menu How To Open WordPress Custom Menu Link in New Window or Tab

That’s it. Save the menu and this link will open in new window or tab.

share on twitter

Comments

  1. Allan Bunt says:

    Great tip! I have been wondering how to do this! I can now uses the Custom Menus.

  2. Facebook Fan Page Design says:

    Thank you. Been trying to do this for the past 20 minutes before I found your website from Google. Simple trick!

  3. Vijaya Kumar S says:

    Thank you so much for this tip. It’s saved my bunch of time.

  4. John G says:

    Great tip. Looked all around for this and many are still writing code to open a custom nav menu item link in new window.

  5. Eric Neufeld says:

    I can select “New window or tab”, but what if I specifically want a new tab?

  6. h4cky says:

    @Eric Neufeld you can’t specify that, because that depend on browser configuration.

  7. DerekPadula says:

    Same as the other guys, I was looking around for 20 minutes before I found this guide. So simple! Wish I had thought to click that drop down menu before.

Leave a Reply