Did you know? WP Menu Trick

19
12
2.9K followers

When working online, there feels like there is always something new to learn.

I have been building websites for three years now and I still learn new things I can do with WordPress.

One of those things has to do with the menu.

I never had need for this particular feature so I never looked into it. I just assumed it was not possible so never 'Googled' it.

One of my clients is very particular about her links and wants EVERYthing to open in a new tab - including her menu items.

As I said, I did not think it was possible.

Then I searched and guess what?

Of course it is possible and it doesn't take any custom coding!

Go to Appearance > Menus

Then look in the top right of your screen for Screen Options

Tick the Link Target box

Then look at each of your menu items you wish to open in a new tab

Tick this box

Make sure you save your menu again!

and that is it! Now this menu link will open in a new tab. :)

Cool trick ;)

19
12

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

Recent Comments

12

Thanks for this!

Thnx, Angela.
M

1

This is good to know! Maybe for some menu links, I might use it...
Thanks, Gerlinde

1

It's definitely good that people know about this, and I respect the choice to do it. However, it's considered standard practice in HTML and coding to always open links in the same tab. This is because if people want a new tab, it's standard that they either right-click and choose that option or use a middle click on their mouse. Straying away from that standard can cause confusion and frustration.

I only say this because I used to make all external links open in a new tab. But after reading on it, and seeing code textbooks suggest not doing it, I became convinced that it's not the best thing to do.

1

I think it is great you took the time to do some research. :) I am an advocate of never taking other people's word but rather looking into things yourself!
As you said, it is a personal choice. For me, the only time I want my links to open in the same window is on my sales pages which go to an order form. :)

2

One of the best reasons to have your link open on a different page is they don't have to go looking for your website page it is still on the header and click back to it. So many times I have lost websites because they open in the same page and you can't get back to it.

2

Thanks Angela, yes I know that, can you tell me where the CSS class and link relationship exactly is for, what can you fill in there?

1

XFN Link Relationship - to my understanding - is just to show a relationship between your site and the link you are connecting it to, whether it is internal or external. I will admit I haven't really looked into it much so not sure about the 'why' you would want to do so.
https://codex.wordpress.org/Defining_Relationships_with_XFN
CSS clas is used to customize that one menu item. This article explains it pretty well I think https://premium.wpmudev.org/blog/customizing-the-wordpress-menu-with-custom-classes/

1

Thanks Angela, I will study the links, have a great day!

1

Yes this is what I use, I always have links in new windows. Have seen some claiming that this should only be used for external links but I do not see any logic in it. Besides, I just like it that way.

1

I prefer links to open in a new tab as well. Not just on my sites but any I visit. :)

1

Hi Angela, this is so useful! Many thanks, Sue :)

1

See more comments

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

© 2005-2025 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.