Results 1 to 8 of 8

Thread: classipress 3.4 empty price tag how to remove. Any one please help me.

  1. #1
    sreenubfa's Avatar
    Join Date
    Feb 2015
    Posts
    71
    Thanks
    1
    Thanked 2 Times in 2 Posts

    classipress 3.4 empty price tag how to remove. Any one please help me.

    My site :
    http://trueads.in/


    I have used this code in my childtheme functions.php :

    This is working single page ad Home page not working

    PHP Code:
    // Unhook default ClassiPress functions
    function unhook_classipress_functions() {
        remove_action( 'appthemes_before_post_title', 'cp_ad_loop_price' );
    }
    add_action('init','unhook_classipress_functions');

    function cp_remove_loop_price() {
        if ( is_page() ) return; // don't do ad-meta on pages
        global $post;
          if ( $post->post_type == 'page' || $post->post_type == 'post' ) return;
          $price = get_post_meta($post->ID, 'cp_price', true); 
          if (!empty($price) AND ($price>0)){
    ?>        
        <div class="price-wrap">
           <span class="tag-head">&nbsp;</span><p class="post-price">
        <?php if ( get_post_meta$post->ID'price'true ) ) cp_get_price_legacy$post->ID );
         else 
    cp_get_price$post->ID'cp_price' ); ?></p>
            </div>
     <?php
    } else { ?>
     <?php
    }
    }
    add_action'appthemes_before_post_title''cp_remove_loop_price' );




    I am using this one also but not working :

    http://forums.appthemes.com/classipr...without-36632/
    Regards
    Sreenubfa
    sreenubfa@gmail.com

  2. #2
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  3. #3
    sreenubfa's Avatar
    Join Date
    Feb 2015
    Posts
    71
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Regards
    Sreenubfa
    sreenubfa@gmail.com

  4. #4
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  5. #5
    sreenubfa's Avatar
    Join Date
    Feb 2015
    Posts
    71
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Regards
    Sreenubfa
    sreenubfa@gmail.com

  6. #6
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  7. #7
    sreenubfa's Avatar
    Join Date
    Feb 2015
    Posts
    71
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Regards
    Sreenubfa
    sreenubfa@gmail.com

  8. #8
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide ad prices if price field is empty else show
    By damanjit in forum ClassiPress General Discussion
    Replies: 3
    Last Post: February 11th, 2014, 08:13 AM
  2. Remove the price tag from classipress
    By sprocket in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 24th, 2012, 10:20 AM
  3. Remove empty space on homepage between category menu and footer
    By bartvriend in forum ClassiPress General Discussion
    Replies: 4
    Last Post: February 10th, 2012, 09:29 AM
  4. No price tag rather than an empty price tag?
    By hype in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 13th, 2011, 06:37 PM
  5. ToolTip and Display Zero for Empty Price is not working
    By abhitom in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 26th, 2010, 12:38 PM