How do you turn an image into a link, AND force that link to open in a new window?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Okay, I learned how to mess with the html, add target="blank" which forces the link to open in a new window or tab. Big thanks to the community for that.

Now, how do I turn an image into a hyper link, and force that link to open in a new tab?

Can anyone offer some help?

Thanks,
Johnny
Photo of John

John

  • 9 Posts
  • 0 Reply Likes
  • hoping someone's got this.

Posted 9 years ago

  • 1
Photo of Ed-a-Torials @ Honey Bear Playhomes

Ed-a-Torials @ Honey Bear Playhomes, Champion

  • 2582 Posts
  • 279 Reply Likes
Hi John it really is quite simple

1) Drag an image widget onto your page and select the image you wish to use as the link
2) Click the "Properties" tab in the right side bar
3) Click the "Choose a link" button
4) Type your URL that you wish to link to
5) Paste the following after the URL

"target="blank"

http:// honeybearplayhomes.com

becomes

http:// honeybearplayhomes.com"target="blank"

6) Click the "OK" button

There is a way to do it in a text widget but it takes going into the HTML and editing the code a bit. Use of the image widget is the easiest...

Happy site building
Ed

You can find me with my head in the honey pot here..

Honey Bear Playhomes Tips and Favs in one place... A Honey bear Playhomes Tip ;)
Photo of John

John

  • 9 Posts
  • 0 Reply Likes
Mui Gracias Ed - that was mucho bueno!
Photo of thecurvyjeweller

thecurvyjeweller

  • 32 Posts
  • 0 Reply Likes
Thanks Ed - this way is so simple and it works :)
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Glad to hear you found it easy to use!!
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks Ed! =)

If you have already added your image via the text widget box, then you can go into your HTML button and add this code:
<a href="YOUR LINK URL GOES HERE" target="blank"><img src="YOUR IMAGE PATH.jpg" border="0"></a>

I hope this helps.
Photo of John

John

  • 9 Posts
  • 0 Reply Likes
Thanks for your help! Much appreciated!!
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Glad to help. =)