Classipress + Flannel creating Sold Stamps at ad listing and ad single page.
This is how i managed to add the sold stamp to the ad listing and ad sigle page, see the pictures.
Screen shot 2013-04-30 at 00.53.26.jpg Screen shot 2013-04-30 at 00.54.05.png
With the help of Samcy.
Please backup the following files which can all be found in /
wp-content/themes/classipress/
loop-ad_listing.php
loop-featured.php
style.css
Done? Ok, lets start:
1.)
Open the loop-ad_listing.php and find the following code (around line 21)
PHP Code:
PHP Code:
<div class="post-block">
UNDER the above code add the following code:
PHP Code:
PHP Code:
<?php if (get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') echo '<span class="soldout-ribbon-list"></span>'; else echo ''; ?>
save the file.
2.)
Open the loop-featured.php and find the following code (around line 26)
PHP Code:
PHP Code:
<div class="post-block">
UNDER the above code add the following code:
PHP Code:
PHP Code:
<?php if (get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') echo '<span class="soldout-ribbon-list"></span>'; else echo ''; ?>
save the file.
3.)
Open the style.css and add the following code under the last line:
Code:
Code:
/* Sold Ribbon Listing */
.soldout-ribbon-list{display:block; float:left; position:absolute;
background:url("images/sold-ribbon.png") no-repeat scroll right;
height:75px;margin:0px 0px 0px 12px;padding:0;width:75px; z-index:990}
save the file.
4.)
Copy and save the following image or create your own:
sold-ribbon.png this images is 75x75 and the text is in portuguese
Ok, now you should have the sold stamp at the ad listing, but not in the ad single page yet.
Now lets do the ad single page sold stamp
Please backup the following files which can all be found in /
wp-content/themes/classipress/
single-ad_listing.php
Done? Ok, lets start:
1-)Open the single-ad_listing.php and find the following code (around line 50)
PHP Code:
<div class="shadowblock_out">
UNDER the above code add the following code:
PHP Code:
<?php if (get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes') echo '<span class="soldout-ribbon-list2"></span>'; else echo ''; ?>
save the file.
2.)
Open the style.css and add the following code under the last line:
Code:
Code:
/* Sold Ribbon Listing2 */
.soldout-ribbon-list2{display:block; float:left; position:absolute;
background:url("images/sold-ribbon2.png") no-repeat scroll right;
height:150px;margin:70px 0px 0px 90px;padding:0;width:150px; z-index:990}
save the file.
3.)
Copy and save the following image or create your own:
sold-ribbon2.png this image is 150x150 and the text is in portuguese
Save that image in /
wp-content/themes/classipress/images/
Now you should see the sold stamp in the ad single page.
See it here
www.arapotionline.com.br/classificados