Make all external links open in new tab

Posted in: Newspaper
Post count: 28

Hi,

I want to make it so that when I link to websites outside of my blog, I want it to open in a different tab, rather navigate away from my blog in the same tab.

Post count: 9544

When you add a link in your post, simply add target=”_blank” to any link you create in your posting. Basic HTML.

Or, you could make a new CSS class and apply the class to any links you want — this is commonly done with a class “external” then when you make a link in your post do class=”external” … see:
SEE: CSS3 target tag:` http://www.w3schools.com/cssref/css3_pr_target-new.asp
`
This is not a function of the theme. You may want to look at a plugin to do this, or research if there is an “auto link” plugin which makes external links open in new tab/window.

If you want to make all links both no-follow along with open in new window, this plugin is helpful for that – we use this on some of our sites:
http://wordpress.org/plugins/wp-external-links/

There is also this plugin I’ve not tried and have no further info on:
http://wordpress.org/plugins/open-external-links-in-a-new-window/

  • This reply was modified 12 years by simchris.
  • This reply was modified 12 years by simchris.
Post count: 31

Hello!
I noticed that I can tell that a link in a post should be open in another tab but I do not see that function for a link in a Author website or FB or any other. Is there a way to make that link open in a new tab?
Regards

Post count: 22421

Hello,

From the wp settings, when you want to create a link and have it open in a new tab, simply press the little cog wheel revealing the link options: https://www.screencast.com/t/xDg9CT8xcyb You will then find an option to make the link open in a new tab.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.