How To: Open a WordPress Menu Link In New Window or Tab?

I have come across multiple WordPress users who aren’t aware that WordPress has a bunch of functions hidden in the “Screen Options” section of multiple Administration Pages. Today I want to show you how to open links in custom menus in a new window or tab (i.e. add a target=”_blank” to link or menu items). Just follow the steps below to unearth the hidden WordPress feature.

 

Step 1:
Click on Appearance >> Menu in the WordPress dashboard.

Opening Links in new windows or tabs using WordPress Custom Menus

 

Step 2:
Look for the Screen Options drop down menu in the top right corner of your browser window.

Opening Links in new windows or tabs using WordPress Custom Menus

 

Step 3:
Under Show advanced menu properties tick the Link Target checkbox.

Opening Links in new windows or tabs using WordPress Custom Menus

 

Step 4:
Add a new link to your custom menu and click on drop down arrow to edit menu items. Voila! You can now decide if your menu item opens in same window or new window.

Opening Links in new windows or tabs using WordPress Custom Menus

 

Happy blogging!

About Salman

Salman Siddiqui is seasoned WordPress critic with 5 years of WordPress experience.

18 Responses to How To: Open a WordPress Menu Link In New Window or Tab?

  1. Chopper says:

    Perfect. Thanks mate!

  2. Katrina says:

    Excellent! – very easy to follow and appreciate the images. They make it easy peasy. It’s so simple but easy to miss if you didn’t know about the screen options. Usually I never think of looking in there.
    Thank you.

  3. Ian says:

    For some very odd reason, it is not working for me. Is this something to do with Weaver 2.2 or the fact that the nav page in question is a squeeze plug-in?

    • Felix says:

      Hi Ian, your theme needs to support the WordPress Custom Menus which cam with version 2.9 if I remember correctly.

      What squeeze page are you talking about?

  4. Sameera says:

    Thank man. it is very valuable.

  5. Farooq says:

    thanks :) i was thinking about coding this thing ;)

  6. THANK you for this. I thought I was going to have to fudge a code somewhere…

  7. Ana DeShields says:

    Great Info. I stumbled across this post when I thought it was going to tell me how to set the DEFAULT for links to open in a new window when I added a website INTO a post, so nice find- thanks!

    Ana

  8. I want to thank you for a perfectly clear and VERY helpful instructions! I rarely write feedback but was absolutely compelled this time! Again, thank you!

  9. terri says:

    OMG Thank you. I was going nuts with this!

  10. Neil says:

    Thanks so much for this helpful tip. I’d used the screen options link before, but not on the menu page. Very useful indeed.

  11. Elisa says:

    Thank you for the easy-to-follow instruction. Have been wondering how to do it. ;-)

  12. dharmana says:

    wuw! i can! this tutorial has fix my problem.
    Thank you very much :D

  13. san says:

    awesome, working fine

  14. Wim says:

    Thanks. This clear, concise and easy to find (google) explanation saved a lot of time and wondering whether the theme I bought was lacking or my knowledge about Worpress.

  15. Bernard says:

    Strange enough, when I checked the box for the link target, in my menu, when there is a link as a menu option (and also with pages), there is NO choice how the new page/site opens, only a checkbox that says : “Open link in a new window/tab ” checked or unchecked: the link opens in a new window…..

  16. osk2 says:

    works like a charm! thanks mate

Leave a Reply

Please use your real name instead of you company name or keyword spam.