0

we have an image library and I am trying to achieve the following

We use fancybox and images are placed with <a> wrapped around it and href=# what I would like is, that: if href empty or # and only when img tag (only if image) then take image SRC as the fancybox link source

Question: Can this be done like the method? Or is there a default setting to trigger this behavior?

Link to supporting question: How do I make fancybox href dynamic?

Community
  • 1
  • 1
snh_nl
  • 2,877
  • 6
  • 32
  • 62

0 Answers0