0

I tried adding the target="new" in the link, but it's not working.

<a href="images/fiandre/fiandre3.jpg" data-lightbox="fiandre" data-title="<a href='http://www.granitifiandre.com/porcelain-tile/technical-ceramic/granite-tiles/' target="new">New Granite</a>"
Kluong
  • 302
  • 3
  • 15
  • possible duplicate of [Open link in new tab](http://stackoverflow.com/questions/15551779/open-link-in-new-tab) – Nick May 07 '14 at 15:28

3 Answers3

0

Use target="_blank" to do this.

Refer to this answer, and this page for more information on Target

Community
  • 1
  • 1
Nick
  • 882
  • 2
  • 9
  • 31
  • Here is the correct answer: http://stackoverflow.com/questions/26707960/lightbox-2-removes-target-blanks-behavior-in-data-title/27036754#27036754 – Tran Hoang Duy Anh Jan 17 '16 at 18:24
0

you just need to add target="_blank"

<a href="images/fiandre/fiandre3.jpg" data-lightbox="fiandre" data-title="<a href='http://www.granitifiandre.com/porcelain-tile/technical-ceramic/granite-tiles/' target="_blank">New Granite</a>"
Animesh
  • 1,005
  • 10
  • 20
  • I've tried that, but what it gives me is New Granite"> next to the image before I even click on the image. – Kluong May 07 '14 at 15:29
0

Just change the word new to _blank and you're good to go.

Millhorn
  • 2,953
  • 7
  • 39
  • 77