Page 1 of 13 12311 ... LastLast
Results 1 to 10 of 128

Thread: Add an Ribbon to featured ads (vers. 3.1.8)

  1. #1
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts

    Lightbulb Add an Ribbon to featured ads (vers. 3.1.8)

    Goal of this tutorial is to show a ribbon on the featured ads listings. Tested on Classipress Version 3.1.8 Something like this in the screenshot:

    [CENTER]featured-ribbon.jpg[/CENTER]

    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 (line 21)

    PHP Code:
               <div class="post-block"
    UNDER the above code add the following code:

    PHP Code:
    <?php if(is_sticky($post_ID) == true) echo '<span class="featured-ribbon"></span>'; else echo ''?>

    save the file.
    __________________________________________________ __________________________________________________ _____

    2.)

    Open the loop-featured.php and find the following code (line 26)

    PHP Code:
                  <div class="post-block"
    UNDER the above code add the following code:

    PHP Code:
    <?php if(is_sticky($post_ID) == true) echo '<span class="featured-ribbon"></span>'; else echo ''?>

    save the file.
    __________________________________________________ __________________________________________________ _____


    3.)

    Open the style.css and add the following code under the last line:

    PHP Code:
    /* Featured Ribbon */ 
    .featured-ribbon
    display:block;float:leftheight:60px;margin:-18px 0px 0px -18px;padding:0;width:60px
    position:absolute
    background:url("images/featured.png"no-repeat scroll right top transparentz-index:999


    save the file.
    __________________________________________________ __________________________________________________ _____


    4.)

    Copy and save the following image or create your own:

    featured.png

    Save that image in /wp-content/themes/classipress/images/

    __________________________________________________ __________________________________________________ _____

    5.)

    Enjoy your Ribbon and drink a beer


    Greets

  2. The Following 27 Users Say Thank You to samcy For This Useful Post:

    ajamm (September 16th, 2012), budihartono (January 22nd, 2013), centralperk (November 2nd, 2012), cjk123 (April 18th, 2012), eaport (April 22nd, 2012), hauki (December 21st, 2012), helmuc (May 17th, 2012), hrusca (September 29th, 2012), inspired (December 28th, 2012), jomarkosabel (March 31st, 2012), jtaylor912 (May 15th, 2013), nstephen (August 13th, 2012), okkwebmedia (November 16th, 2012), paulogoode (October 26th, 2012), puthzel (April 20th, 2012), seocoach (January 22nd, 2013), serno (May 21st, 2013), shankalot (September 15th, 2012), smeftahi (January 16th, 2013), smhd (March 9th, 2014), stephenoconnor (May 1st, 2012), twins0384 (August 10th, 2012), villadecker (April 19th, 2012), viviani (July 27th, 2012), walde (September 25th, 2013), weiching (February 12th, 2013), young master (October 21st, 2012)

  3. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  4. #3
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





  5. #4
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. The Following 7 Users Say Thank You to samcy For This Useful Post:

    eaport (April 22nd, 2012), helmuc (May 17th, 2012), seocoach (January 22nd, 2013), serno (May 21st, 2013), simeon (October 11th, 2012), stephenoconnor (May 1st, 2012), twins0384 (August 10th, 2012)

  7. #5
    Member anilkumarkanneboina's Avatar
    Join Date
    Mar 2012
    Location
    India
    Posts
    82
    Thanks
    8
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  9. The Following User Says Thank You to samcy For This Useful Post:

    elitewebninja (April 20th, 2012)

  10. #7
    Member anilkumarkanneboina's Avatar
    Join Date
    Mar 2012
    Location
    India
    Posts
    82
    Thanks
    8
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #8
    Senior Member cjk123's Avatar
    Join Date
    Apr 2012
    Location
    United States
    Posts
    105
    Thanks
    3
    Thanked 23 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  12. #9
    Rookie elitewebninja's Avatar
    Join Date
    Apr 2012
    Location
    United States
    Posts
    6
    Thanks
    1
    Thanked 3 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  13. The Following User Says Thank You to elitewebninja For This Useful Post:

    gmadrid081 (August 21st, 2012)

  14. #10
    aj270303's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    2,106
    Thanks
    56
    Thanked 99 Times in 81 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 13 12311 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUTORIAL] Ribbon for featured ads
    By samcy in forum ClassiPress General Discussion
    Replies: 43
    Last Post: January 1st, 2013, 06:46 AM
  2. highlighted + featured ribbon + top category for featured listing
    By opacity101 in forum ClassiPress General Discussion
    Replies: 19
    Last Post: December 18th, 2012, 06:05 AM
  3. [TUTORIAL] Show tabs: Just listed | Featured | Popular | Categories (vers. 3.1.8)
    By samcy in forum ClassiPress General Discussion
    Replies: 13
    Last Post: July 25th, 2012, 02:29 PM
  4. [Featured] & [Sold] modifications for Classipress Vers. 3.1.7
    By samcy in forum ClassiPress General Discussion
    Replies: 8
    Last Post: March 23rd, 2012, 10:17 AM
  5. Featured Ads Ribbon
    By danjo in forum Help Using ClassiPress
    Replies: 1
    Last Post: July 14th, 2011, 12:38 PM