cycle2 icon indicating copy to clipboard operation
cycle2 copied to clipboard

Add buttons & links to Slideshow

Open j8kerussell opened this issue 12 years ago • 8 comments

Hi, I would love to be able to add a "Read More" button below the title and description of my slideshow AND a link to the image itself (Button/Image on each slide gets their own unique link).

I went through and put together some code, but it's not correct and I haven't been able to figure out how to add unique links for the button. Here's the fiddle: http://jsfiddle.net/p3Tm3/4/

The yellow box is where I was imagining Read More would be. Does anyone have any thoughts on how to do this? Thank you.

j8kerussell avatar Jan 15 '14 21:01 j8kerussell

Hi,

you can use a div instead of img and captions.

http://jquery.malsup.com/cycle2/demo/non-image.php

a quick example http://jsfiddle.net/p3Tm3/4/

thinmy avatar Jan 17 '14 18:01 thinmy

Hey, This is great, thanks! The fiddle example you sent along looks like the one I sent in the original post. Was there another one you meant to send?

j8kerussell avatar Jan 17 '14 19:01 j8kerussell

Sorry, I paste a wrong fiddle

thinmy avatar Jan 17 '14 20:01 thinmy

No problem. Were you planning to resend it? I don't see it in your previous comment.

j8kerussell avatar Jan 17 '14 20:01 j8kerussell

Here.

http://jsfiddle.net/p3Tm3/6/

just a sample

thinmy avatar Jan 17 '14 21:01 thinmy

This is great, thank you! How does one style the button? I see a class="button" but I don't see any CSS to style it.

j8kerussell avatar Jan 20 '14 14:01 j8kerussell

you need to create your own class, you can change this class if you have one to style the button.

like

.button { padding: 1em; background-color: #ff0000; font-weight: bold; }

.button:hover { background-color: #00ff00; }

thinmy avatar Jan 20 '14 15:01 thinmy

It works, thank you!

j8kerussell avatar Jan 20 '14 19:01 j8kerussell