So as the title says im trying to add a div class to the thumbnails from a single category. Im trying to use this code:
if (in_category( 'Expired' )) : ?><div class="expire">
This is the single post code im trying to add it to:
<?php
if(has_post_thumbnail()) {
the_post_thumbnail(
array($theme->get_option('featured_image_width_single'), $theme->get_option('featured_image_height_single')),
array("class" => $theme->get_option('featured_image_position_single') . " featured_image")
);
}
?>
And this is the div class ive created in the stylesheet:
.expire {
position: absolute;
bottom: 10px;
background:url(images/sample-expired.png) no-repeat ;
width: 100px;
height:60px;
text-align: center;
padding: 4px;
border-radius: 10px;
left: 2px;
}
Any ideas where in the code I should paste this? or any help as to getting this implemented? Thanks heaps