Sometimes it’s best to open links in new tabs so readers can come back to your website after you point them to an external link. But when should you do it and how can you do it?
This short video will walk you through everything you need to know.
In a nutshell:
Open links in new tabs when:
- You’re sending people to an external website (Amazon, Apple, BookFunnel, etc.)
- You’re sending people to a landing page where there’s no navigation menu.
Watch the video to learn how to do it when editing various sections of your WordPress site. The video covers navigation menus, widgets, and pages/posts.
When you need to manually edit the HTML, you need to add the following to the link. For example purposes, the following HTML represents a text link pointing to Google that opens in the same tab:
<a href="http://google.com">Click to go to Google</a>
And the following is another text link pointing to Google that opens in a NEW tab. Note that the only difference is the presence of target="_blank"
<a href="http://google.com" target="_blank">Click to go to Google</a>
It’s important to note that the quotation marks used in HTML can be either single or double (but they need to both be the same) and they cannot be curly quotes, they need to be straight. If you’re copying and pasting from MS Word, you may very well have curly quotes and those don’t work.