Remove the ClassiPress Price tag if not needed or 0

Tested on WordPress 3.6.1  &  ClassiPress Version: 3.3.1

Now you are sitting there creating ad categories for your ClassiPress website. Sooner or later you may like to setup categories such as “Casual Relationships” or “Free Give Away Items” etc. In this case you may not like to see a ClassiPress price tag in the loop or ad description. I mean, how does it look when somebody posts an ad with the title  “Cool men seeking nice woman”  and next to his ad a price tag shows up? I think it’s better to remove the price tag if not needed.

“Not needed” means i.e. customer didn’t set a price, customer sets the price to 0 (zero), or customer writes something in the price field such as “Best price” etc.

In all those cases our goal will be something like this here:



What we can do is done in less than a minute. Just open your child themes functions.php and add this:

Now create a form layout (ClassiPress => Form Layouts) and create a layout for specific categories, like relationships, free give aways or jobs. In this layout you disable (un-checkmark) the ‘required’ for the price field. Now people can leave this field empty.

That’s it! Enjoy!

Could you please give this tutorial a rating? Thank you very much! :)

Remove the ClassiPress Price tag if not needed or 0 4.98/5 (99.58%) 48 votes

Tags: , , ,

19 Responses to “Remove the ClassiPress Price tag if not needed or 0”

  1. Nagaraju August 3, 2013 at 17:07 #


    First of all, Hats off to your great work and service. I went through your tutorial and implemented as it is but it is showing error message like “Parse error: syntax error, unexpected’}’ in/home/do4me/public_html/wp-content/themes/classipress-child/functions.phpon line19″
    I’m a bit newbie to the wordpress n php. Please help me. Thankyou for your prospective help.

  2. Rolf Hassel August 3, 2013 at 17:12 #

    Maybe something went wrong while you copied/paste the code. The error message says that there is an unexpected ‘}’ brace on line 19. Or did you place the code on first place? It must be done after the starting

    • Nagaraju August 3, 2013 at 17:24 #

      I checked it thrice sir. There’z no error in copying/pasting.

  3. Nagaraju August 3, 2013 at 17:13 #

    To be clear, I’m using WordPress 3.5.2 and Classipress 3.2.
    Thank you

  4. Nagaraju August 3, 2013 at 17:17 #

    Sir, if u don’t mind, can you mail me the exact code?
    Thank you

  5. Rolf Hassel August 3, 2013 at 17:25 #

    I have send you an email. But please update your ClassiPress to version 3.3


  6. Manish August 15, 2013 at 13:13 #

    Hi Rolf … I was wondering if you could also show us how we can add a price range in place of fixed price. Like if we have a category to sell services e.g photography and would like to post an ad whee the photographer wants to give his price range like $300 to $600

  7. John September 1, 2013 at 12:56 #

    Hi Rolf, I was really pleased to see this tutorial as it does exactly what I need to achieve. However, I’m having the problem that this code removes ALL price tags. I need to keep price tags for all categories which include a price field but exclude them from others. I’ve tried every alternative bit of code I can find in the forums – some give me two price tags in a single listing, some none at all, and most break the site. I’m very new to this and would appreciate any guidance you can offer. Thanks.

  8. Pascal November 13, 2013 at 17:34 #


    functions.php in my child theme is blank: nothing written.

    To do this tutorial I just have to paste the code in my functions.php ltuo empty or my functions.php must have something already written in?
    Preche I’ve seen some tutorials where they say you have to change something in functions.php in that case how can I?

    Thank you very much!

  9. Jane May 22, 2014 at 04:18 #


    I took out the price field and had it all set with not showing the price or $ symbol in the featured slider… had been like that for a few weeks… but now it shows all of a sudden. I am sure I did not set things differently at all and have a child them in place. Any ideas gratefully appreciated! Cheers.

  10. Jane May 22, 2014 at 04:38 #

    Display Zero for Empty Ad Prices … under Classipress pricing tab.

    Ooops, silly to do that, just realised I had checked to box at some stage to say ‘display’ zero for empty ad prices’.
    Apologies for adding to this thread! Still, it may help someone else who has a memory mal-function too!

  11. bb July 26, 2014 at 08:54 #

    Could you create a video tutorial about this?

    • Rolf Hassel September 30, 2014 at 07:04 #

      Sorry, i don’t have the time to do that

  12. Mione September 30, 2014 at 01:38 #

    I need to remove the price tag completely, as our site *will* have an number there, but the price tag doesn’t go with our vision for the site design.Please tell me there is a way to display a “price” as just a number, without the price tag?!

  13. Mione October 1, 2014 at 07:15 #

    Is the solution as simple as to remove the “Price” field from our form and add a new Custom Field to hold the “pricing” information?

  14. Rolf Hassel October 1, 2014 at 07:58 #


    You mean something like in this child theme?:

  15. Mione October 3, 2014 at 03:02 #

    No, actually that one still has the tag (the yellow “box” around the item price). What I’m wondering is, if I remove “Price” from my ad form and instead add a new custom field called something else, i.e. “Rate”, would that work?

  16. Brian February 1, 2015 at 00:27 #


    I have a different question, but relating to classispress…I have installed a plugin, but after installing it, the search returns everything (All Posts, All Pages, All Ads) if I click the search button without entering any keyword. Is there a way to bring it back to normal, just returning only ads, not pages or posts, unless I enable the feature in classipress settings?

    Note: I have the setting exclude all pages and exclude all posts enabled in the classipress settings, but I am still getting all pages and posts returning as well with a plugin installed, if I disable the plugin, it works like normal.

    Note 2: The Plugin is NOT from the appthemes collection, it is a 3rd party premium wordpress plugin.

    Thank you

  17. nazario May 14, 2015 at 09:42 #

    Hello, I found your perfect tutorial and it helped to eliminate the price. Use ClassiPress for a personals site, not about price nor to sell, so I need to eliminate even the “mark as sold” from the control panel.
    you can give me some help?

    Meanwhile thanks will follow you often !!!

Leave a Reply

3 + = 8

Go Up ▲Go Up ▲