Open ericcarroll opened 11 years ago
I was having the same problem, but I don't think it is related to a link per se - the caption data just needed to be applied to the element specified by data-cycle-slides. In my case it's a div. Thank you for posting this, I've been struggling with it for hours.
I hope it was helpful. It stinks to feel like you've been spinning your wheels for hours though.
nice job work for me thank you
I struggled with this for awhile. Thanks for posting your solution!
why loading ?
I discovered you can't have links on images and have the data-cycle-desc work in the overlay. It would only print out 'desc' instead of the text listed in the markup OR it would print out both items properly, but remove the linking ability and it would lose the prev/next arrows.
My fix:
<div class="cycle-slideshow" data-cycle-slides=".cycle-link">
<a class="cycle-link" data-cycle-title="Your Overlay Title" data-cycle-desc="Your Overlay Description">
Note: make certain to put the data-cycle-title and data-cycle-desc on the anchor tag and not the image tag. It should look like this:
<a href="your-url" class="cycle-link" data-cycle-title="Overlay Title" data-cycle-desc="Overlay Description"><img src="" /></a>