Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress SEO for WordPress Content Comes First How to Use Links in WordPress for SEO

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,627 Points

Open links in a New Window ... or not?

Zac Gordon explained very well how to add links to your posts both for a better user experience and for optimal SEO, but one thing that he didn't touch on was the "open link in a new window" option.

I'm curious, if you are linking to external sites that are not your own (or even within or to your own sites), should you enable the "open link in a new window"?

Currently, I do, because I feel there is less of a chance of you losing the 'visitor' if they have to go back to the original window/tab rather than having to hit the 'back' button.

What is the best practice? Or, is it just a matter of preference? What do you guys think?

:)

1 Answer

Colin Marshall
Colin Marshall
32,861 Points

I used to do it like you do with external links opening in a new tab/window until somebody on here pointed me to this article on CSS Tricks:

When to use target="_blank"

Jason Anders
Jason Anders
Treehouse Moderator 145,627 Points

Awesome link. Thanks Colin. Definitely shows a different perspective on what I was thinking. :)