Notice! I receive quite a few support requests daily, all are answered in the order received. Thanks for your patience!

My Blog is 4 Times Faster Than Your Blog

How do I add an extra status flag?

Go to admin/theme-functions.php and change ct_status function to be like that:

function ct_status() { ?>

<?php if(has_status(‘reduced’) || has_status(‘sold’) || has_status(‘leased’) || has_status(‘open-house’) || has_status(‘for-rent’) || has_status(‘rental’) || has_status(‘CUSTOM_STATUS’)) { ?>

<h6 class=”snipe <?php if(has_status(‘reduced’)) { echo “reduced”; } elseif(has_status(‘sold’)) { echo “sold”; } elseif(has_status(‘leased’)) { echo “leased”; } elseif(has_status(‘open-house’)) { echo “open-house”; } elseif(has_status(‘available’)) { echo “available”; } elseif(has_status(‘for-rent’) || has_status(‘rental’)) { echo “rental”; } elseif(has_status(‘CUSTOM_STATUS’)) { echo “CUSTOM_STATUS”; } ?>”>

<?php if(has_status(‘reduced’)) { ?><?php _e(‘Reduced’, ‘contempo’); ?><?php } elseif(has_status(‘leased’)) { ?><?php _e(‘Leased’, ‘contempo’); ?><?php } elseif(has_status(‘sold’)) { ?><?php _e(‘Sold’, ‘contempo’); ?><?php } elseif(has_status(‘open-house’)) { ?><?php _e(‘Open House’, ‘contempo’); ?><?php } elseif(has_status(‘available’)) { ?><?php _e(‘Available’, ‘contempo’); ?><?php } elseif(has_status(‘for-rent’) || has_status(‘rental’)) { ?><?php _e(‘Rental’, ‘contempo’); ?><?php } elseif(has_status(‘CUSTOM_STATUS’)) { _e(‘CUSTOM_STATUS’, ‘contempo’); } ?>

</h6> <?php } ?> <?php }

Then go to Appearance -> Editor -> Stylesheet or Theme Options -> Create a Skin -> Custom CSS and style the CUSTOM_STATUS class like that:

.CUSTOM_STATUS {
background-color: BG_COLOR;
color: FG_COLOR;
}

Changing the colors the way you like them.

0