Creating a "SOLD" stamp for your ads.
One of the first things I went to change in ClassiPress 3.0.5 was the way the theme marks posts as being sold. ClassiPress 3.0.5 puts a text comment at the top of the classified ad that says "This item has been sold" that is the same color as the rest of the text, so it doesn't stand out at all.
This is where I wanted to make the change. It was a really simple change, but had dramatic effects. Here is a screenshot of what I was able to do by changing one line of code.
The first thing you need to do is download the attached image (sold_stamp.gif
) to your local computer somewhere you can find it later.
Make a backup copy of "classipress/single-ad-listing.php
Find this code in the single-ad-listing.php
<li id="cp_sold"><span><?php _e('This item has been sold', 'appthemes'); ?></span></li>
Replace the code above with this code and save the file.
<li id="cp_sold"><span><img src="/wp-content/themes/classipress/images/sold_stamp.gif"></span></li>
Upload the single-ad-listing.php
file to your classipress root folder.
Upload the sold_stamp.gif
file to "/wp
Now, every ad you or your members mark as sold will have the sold stamp at the top of the listing.
Hope everyone enjoys this... I am still working on a way to ad a "sold" icon that can be seen when not viewing the complete ad, like when you are browsing a category. I think this will be helpful as well.
Last edited by pepsi; November 17th, 2010 at 03:46 PM.