Results 1 to 5 of 5

Thread: Sticky Ads Highlight

  1. #1
    Thread Starter
    anunturitop_ro's Avatar
    Join Date
    May 2009
    Location
    Romania
    Posts
    69
    Thanks
    0
    Thanked 1 Time in 1 Post

    Sticky Ads Highlight

    Sticky Ads Highlight was a great option why this was expluded in new versions of the theme. Also a good feature is Sticky Ads Highlight at top of categories where they are added.

  2. The Following User Says Thank You to anunturitop_ro For This Useful Post:

    3mounika (May 31st, 2012)

  3. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,982
    Thanks
    170
    Thanked 3,408 Times in 3,279 Posts
    Perhaps it will be considered in version 3.1 .
    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
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    Hi,
    With some skills you can achieve this yourself placing something like...
    <?php if (is_sticky()){ ?>
    <div class="whiteblock featured_bg">
    <div class="featured_img"></div>
    <?php } else { ?>
    <div class="whiteblock can_chg_bg">
    <?php } ?>

    ... instead of...
    <div class="whiteblock can_chg_bg">

    Better if you built it into a childtheme.

    Files you'll have to modify:
    - index-standard.php/index-directory.php
    - search.php
    - archive-default.php

    Some CSS will be necessary too.

    Regards,

    Quote Originally Posted by anunturitop_ro View Post
    Sticky Ads Highlight was a great option why this was expluded in new versions of the theme. Also a good feature is Sticky Ads Highlight at top of categories where they are added.

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  5. #4
    Junior Member kittycat's Avatar
    Join Date
    Oct 2010
    Posts
    36
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Hi, in classipress 3.0.4 we used this... but i dont know WHERE TO PUT IT IN 3.0.5 anybody could help here?

    In search.php, archive-default.php and also index-standard.php or index-directory.php (whichever one you are using) - find the following div:

    Code:

    <div class="whiteblock can_chg_bg">

    Replace that with this:
    Code:

    <?php if (is_sticky()){ ?>
    <div class="whiteblock feature_bg">
    <?php } else { ?>
    <div class="whiteblock can_chg_bg">
    <?php } ?>

    That checks to see if the post "is sticky" (is a feature post). If it is, it will style the background to the feature_bg class. If its not a sticky, it will use the can_chg_bg class as normal.

    Then add a new CSS class to your custom.css file.

    Code:

    .content_res .feature_bg { background-color: #FC9; }
    .content_res .feature_bg:hover { background-color: #FC6; }

  6. #5
    akoetsier's Avatar
    Join Date
    Oct 2010
    Location
    A nice warm toilet
    Posts
    163
    Thanks
    17
    Thanked 29 Times in 15 Posts
    Quote Originally Posted by jomarkosabel View Post
    Perhaps it will be considered in version 3.1 .
    Considered? No its a mustdo !

  7. The Following 2 Users Say Thank You to akoetsier For This Useful Post:

    knova15 (March 16th, 2012), wfraga18 (November 18th, 2011)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Highlight Featured Ads
    By kliksaya in forum ClassiPress General Discussion
    Replies: 183
    Last Post: April 19th, 2013, 09:17 AM
  2. [SOLVED] ads highlight bar disappeared
    By natopx in forum Help Using ClassiPress
    Replies: 5
    Last Post: August 25th, 2010, 08:33 PM
  3. Highlight Featured Ads
    By bioregultor in forum Help Using ClassiPress
    Replies: 0
    Last Post: December 31st, 1969, 07:00 PM