cycle2
cycle2 copied to clipboard
Is it possible to put a hyperlink in the caption overlay of a slide show?
My initial attempt that does not work looked like this:
<img data-cycle-desc="Art Direction & Design<a href="Link here">Click to blah</a>" src="/assets/images/work/magf-mob2.jpg">
I also found a good article that allowed you to link from the image:
But I would rather just have a link in the description.
I solved the the problem thanks to @nmynarcik
You have to use single quotes inside the desc text. He also pointed out you can use single quotes for the initial quotes and doubles inside.
i.e.
<img data-cycle-desc="Art Direction & Design<a href='Link here'>Click to blah</a>" src="/assets/images/work/magf-mob2.jpg">
Also if you are reading this Malsup, is this the correct place to come with an issue like this? or should I goto a place like Stackoverflow? I don't mean to spam your Github and am new to coding.