I have been trying to figure out how to make an image a link in NivoSlider. I know that I can use captions to create a link, but I want the actual image to be clickable for better accessibility.
I found a similar question on StackOverflow, but it was related to an old version of Nivo.
Here is how I am setting up the slider:
<div class="slider-wrapper theme-default container">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider">
<div class='slide'><a href='#'><img src='abc.png'></a>
</div>
<div class='slide'><a href='http://google.com'><img src='google.png' title=''></a>
</div>
</div>
</div>
Everything seems to work fine with the slideshow, transitions, and captions. However, I'm struggling to get the anchor link to work on the entire image. If anyone has a solution, please share!
EDIT: Here is the CSS code snippet that I have added:
.slider-wrapper {
margin: auto;
margin-top: 15px;
background: fade(white,80%);
padding-top: 15px;
margin-bottom: 40px;
}
.slide-title {
.font;
color: #ddd;
}