← Back to the blog
WPFEED ARCHIVE

How to Open Menu in New Tab in WordPress

Previously I’ve written a tutorial on adding custom classes to your WordPress menu to further customize your menu. Have you ever wondered how to open those links in the menu in a new tab?

Sometimes it’s good to open the link in new tab, especially if you link to external site. By doing this, the visitor will not leave your website, they can simply go back to your site by switching the browser tab.

Firstly, create your WordPress menu. To do so, go to Appearance > Menus.

WordPress-Menu

To enable the feature to open the menu in a new tab, click on the Screen Options button on the top right side of your screen. Then, tick on Link Target option.

Once you’ve enabled it, a new option will be available. Then, you can choose whether you want to open the link in new tab by tick on the option. Then, hit the Save button.

open-menu-in-new-tab

You can verify whether this works by clicking on the menu on your site.

Tutorials

Discussion

Leave a Reply

Your email address will not be published. Required fields are marked *