chanbraithwaite (May 21st, 2012), coza (April 27th, 2012), jomarkosabel (April 24th, 2012), lucrothe (May 30th, 2012)
//Add featured listing ribbon
function aha_featured_ribbon() {
if(is_sticky($post_ID) == true) echo '<div class="featured-ribbon-red"></div>';
else echo '';
}
add_action('appthemes_before_post_title','aha_featured_ribbon');
/* Featured Ribbon */
/* First set parent divs to position relative */
.shadowblock,
.post-block {
position: relative;
}
/* Then style and position your ribbon on listings pages */
.featured-ribbon-red {
height: 60px;
width: 60px;
position: absolute;
top: -5px;
left: -5px;
z-index: 99px;
background: url("http://forums.appthemes.com/images/featured-red.png") no-repeat;
}
/* Now style and position on single ad pages */
div.shadowblock div.featured-ribbon-red {
top: 69px;
left: 12px;
}
chanbraithwaite (May 21st, 2012), coza (April 27th, 2012), jomarkosabel (April 24th, 2012), lucrothe (May 30th, 2012)
appouser (May 5th, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)