I'd like to be able to hover over an image and the text below the image change color.
An example of what I mean can be seen on this site, by hovering over any of the products the text below changes to white: www.ugmonk.com
This is the code for my list item:
<li>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('%s', 'wpzoom'), get_the_title()); ?>">
<?php unset($img); if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
$img = $thumbURL[0]; }
else {
if (!$img) { $img = catch_that_image($post->ID); }
}
if ($img){ $img = wpzoom_wpmu($img); ?>
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=280&h=280&zc=1" alt="<?php the_title(); ?>"/><?php } ?>
</a>
<div class="meta">
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('%s', 'wpzoom'), get_the_title()); ?>"> <?php the_title(); ?></a></h3>
<?php
$price = get_post_meta(get_the_ID(), 'wpzoom_portfolio_overview', true);
$price = do_shortcode($price);
?>
<a href="<?php the_permalink(); ?>"><?php echo $price; ?></a>
</div>
</li>
I have tried opening the 'a' tag at the beginning and closing at the end like this:
<li>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('%s', 'wpzoom'), get_the_title()); ?>">
<?php unset($img); if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
$img = $thumbURL[0]; }
else {
if (!$img) { $img = catch_that_image($post->ID); }
}
if ($img){ $img = wpzoom_wpmu($img); ?>
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=280&h=280&zc=1" alt="<?php the_title(); ?>"/><?php } ?>
<div class="meta">
<h3><?php the_title(); ?></h3>
<?php
$price = get_post_meta(get_the_ID(), 'wpzoom_portfolio_overview', true);
$price = do_shortcode($price);
echo $price; ?></a>
</div>
</li>
And then I have tried to style a:hover but can't get it working!
Thanks
*EDIT*
HTML outputted:
<li>
<a href="http://www.domain.com/link" rel="bookmark" title="Description">
<img src="http://domain.com/image" alt="Description"/>
</a>
<div class="meta">
<h3>
<a href="http://www.domain.com/link" rel="bookmark" title="Description">
Product
</a>
</h3>
<a href="http://www.domain.com/link">
<span class="Cart66Price">£15.00</span>
</a>
</div>
</li>