Insert link in Fancybox popup image

Asked

Viewed 413 times

2

How to insert a link in the image that opens (popup) in the fancybox after clicking?

Excerpt from the HTML code:

<li> 
  <a class="fancybox" rel="group" href="imagem_grande.jpg" title="nome_produto">
    <img src="imagem_pequena.jpg" alt="Imagem Pequena." />
  </a>
</li>
  • 1

    Do you have any piece of code? If yes post, because it would facilitate in the answer.

1 answer

1

It wasn’t quite what I wanted, but I managed to insert the link inside the "title", see:

title="<a href="www.exemplo.com" target="_blank">Nome do Produto</a>"

I just didn’t like it because when you hover over the image, it returns all the content of the title, which wasn’t very nice.

  • I await suggestions.

  • use the attribute content instead of title. http://fancybox.net/api

Browser other questions tagged

You are not signed in. Login or sign up in order to post.