How to Open External Links in a New Window or Tab with WordPress
Do you want to open external links from your blog posts in a new window? Opening links in a new window will give you the ability to link to different external sites without your visitors leaving your site. In this video, we will show you how to easily open external links in a new window on your WordPress site.
This video is sponsored by MonsterInsights, a powerful plugin to help you use your analytics information to the fullest, take a look at MonsterInsights here:
For our discount, use our code: WPBVIP
For adding a link in the Block/Gutenberg editor, you would want to highlight the text and click the insert link button. This will bring up a box where you can add a URL to your text and if you click the down arrow to the right of the link box it should bring up additional options, one of which would be to open the link in a new tab.
If you're using the classic editor, when you click the add link button it will bring up a similar interface to what happens in the block editor and you will instead click the cog/gear icon. This should bring up a window where you can click the checkbox for opening the link in the new window.
If you wanted to manually create the link that opens in a new tab then you can open the text in the text editor and add a link the same way we did previously. It will set up the link with the correct tags that you can copy and the specific section you would need to copy would be the rel='noopener'. When you add that to any link that you edit using HTML it should open the link in a new window.
If you wanted all external links to open on a new window then you could also install and activate the 'External Links in New Window/New Tab' plugin below:
If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
Feel free to take a look at the written version of this tutorial here:
Join our group on Facebook
Follow us on Twitter
Check out our website for more WordPress Tutorials