alternativeAlternative approach:
<li class="cycle-item slide-<?php echo $i; ?>">
<span class="featured-title"><?php the_title(); ?></span>
<a href="<?php the_permalink();?>"><?php the_post_thumbnail('featured'); ?></a>
</li>
then hide the span with cssCSS, show it on hover of the li<li>
element, position it over the image with css;CSS.
exampleExample:
li.cycle-item {
position: relative;
}
span
li.cycle-item .featured-title {
display: none;
}
li.cycle-item:hover span.featured-title {
display: block;
position: absolute;
top: 20%;
left: 0;
}