cjk123 (May 18th, 2012)
//Add sold ribbon to listings
function sold_ribbon() {
if (get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') echo '<span class="featured-ribbon-red"></span>'; else echo '';
}
add_action('appthemes_before_post_title','sold_ribbon');
/* First set parent divs to position relative */ .shadowblock, .post-block { position: relative; } /* Then style and position your ribbon on listings pages */ .sold-ribbon-red { height: 60px; width: 60px; position: absolute; top: -4px; left: -4px; z-index: 99px; background: url(./images/sold_60.png) no-repeat; } /* Now style and position on single ad pages */ div.shadowblock div.sold-ribbon-red { top: 69px; left: 12px; }
cjk123 (May 18th, 2012)
plink (May 18th, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)