In WordPress you can create custom menus very easily through your WordPress dashboard (if supported by your WordPress theme). But by default the menu items will always open in the same browser window/tab. What if you would like to open WordPress menu items in a new window? In this tutorial you will learn how you can easily open the menu items in a new browser tab.
Open WordPress Menu Items in new Browser Window/Tab
When adding normal links to your content on post or pages, you probably would just use the
link attribute to open links in a new browser window, for example:
<a href="https://www.example.com/" target="_blank">This link will open in a new window</a>
But you will notice that you can’t just do that for the menu items in WordPress. At least not without customizing code. The good news is that there is an option to open the menu items in a new browser window/tab. This option can be found in your WordPress dashboard under “Appearance => Menus” when you check “Link Target” in the “Screen Options”, as you can see in this video:
When you have enabled this, each WordPress menu item will have an option to open the link in a new browser window/tab. This comes especially very handy when you want to add external links to your custom menu in WordPress. In case you don’t need the option anymore, you can just hide it again via the “Screen Options” in the upper right corner of the screen.
More about Custom Menus in WordPress
If you want to learn more about custom menus in WordPress, you can check the WordPress Codex or this tutorial: How to create a Custom Menu in WordPress. In case you have purchased a theme and have any questions about your WordPress themes by MH Themes, you can check the support center or open a support ticket at our helpdesk. We will be more than happy to assist you.