WordPress is an awesome blogging tool. As far as I know it is the best, most versatile content management system (CMS) there is. One of the many reasons I love WordPress so much is because it’s absolutely user-friendly. For example, opening any link into a new tab in your browser is super simple.
Opening a Link to a New Tab
To create a link in WordPress’ visual/text editor is very easy. Select the text you want to make a link and click on the link button above the editor’s window — it’s the third button from the left.
WordPress visual editor buttons
WordPress editor insert link
The link button opens up a new window called Insert/edit link. Here you can type in the URL of the link’s destination and give the link a title that will be visible when your users hover with their mouses over the link.
You can select the Open link in a new window/tab option. And you can even search your existing posts and pages and select a destination from among them.
All your selections will be saved after clicking on the Add Link button.
This approach works on all posts and pages.
If you want to add links into your sidebar or footer widgets, you will have to create these links manually.
Go to Appearance > Widgets in your WordPress Dashboard. Drag and drop the Text (Arbitrary text or HTML.) widget to the sidebar or footer box where you want to create a link.
Add the following code to the widget’s body:
<ahref="/"title="Structure of Success">Visit stosu.com!</a>
Change / to your link’s destination. If you want the link to open in a new tab use target=”_blank”, otherwise delete it. If you want the link to have a title, use title=”Your Title Here”.
Don’t forget to click on the Save button to save your new widget or the changes you have made to an existing widget.
Opening a Menu Item to a New Tab
To make a menu item open into a new tab, go to Appearance > Menus in your WordPress Dashboard. Choose a menu to edit and click Select. Or, if you haven’t yet created a menu, click on create a new menu, create and save your new menu, and proceed.
WordPress menu’s screen options
Click Screen Options in the upper-right corner of your WordPress Dashboard.
In the drop-down menu tick Link Target under Show advanced menu properties.
WordPress menu item option
Now click on the down arrow next to the menu item you wish to open in a new tab and tick Open link in a new window/tab.
Save your menu by clicking on the Save Menu button.
From now on this menu item will open in a new tab.
Easy, isn’t it?
I hope that you found this short tutorial helpful. Let me know if you have, or even if you haven’t, in the comments below.