Text editor offering an external link to open in a new window

  • 2
  • Question
  • Updated 12 years ago
  • Answered
On my wish list: Ability to hyperlink text to open in a new window in Text widget. Bothers me that people click on link and may not return to my site. I know how to hyperlink...this is specific to writing in the text widget and just linking certain words or phrases.
Photo of clouda9


  • 323 Posts
  • 3 Reply Likes
  • full of anticipation!

Posted 12 years ago

  • 2
Photo of Monique


  • 6294 Posts
  • 446 Reply Likes
Hi Clouda9

I just answered this question on another thread and I would like to repeat my answer here.

Many people request this feature, so it might be worth adding this option to our link editor. The jury is still out on this, however. You may know this already, but for the benefit of others:

Right now you can get a link open in a new window/tab, but it means that you need to do a little HTML editing. Here are the steps:
1) Add text using the text widget
2) Select the text that you want the link and then click "insert link" on the text editing toolbar
3) Create your link to your chosen URL as normal, click ok
4) Then click "HTML" - the last icon on the text editing toolbar
5) You will see the code that looks like this for your link (I have used the text "Visit Wikipedia to see more information", with the link being on Wikipedia:
Visit <!-- <a href="http://www.wikipedia.org">Wikipedia&l...> to see more information<br> -->
All you need to do is add in target="blank" as show below:
Visit <!-- <a href="http://www.wikipedia.org" target="blank">Wikipedia</a> to see more information<br> -->
(leave out the <! -- and the -- >)

Your link will then open in a new tab or window, depending on what browser your visitor is using.

Please note: current thinking in web usability circles is that links that open in a new window are a bad idea for a number of reasons. See: http://www.sitepoint.com/article/bewa..., for a great article by a leading expert in the field. After looking at that, if you still have a strong reason for wanting to do this, then I hope my suggestion above works for you.

I will ask our developers to consider adding this feature to the link editor.
Photo of Cosmic Sensorium

Cosmic Sensorium

  • 102 Posts
  • 5 Reply Likes
I was trying to follow the link to the article you posted, clicking on the link gives me a 404 not found, and "copy link location" to paste into my browser does the same. I also did a search on sitepoint.com with no luck. Could you please repost? thanks!!
Photo of Monique


  • 6294 Posts
  • 446 Reply Likes
Thanks for telling me about the broken link. They seem to have moved the article. Here it is again: http://www.sitepoint.com/article/bewa...