Home Forums Event Espresso Premium not display the Event price 0,00 EUR

not display the Event price 0,00 EUR

Posted: July 30, 2012 at 6:18 am


July 30, 2012 at 6:18 am

how can we disable the display “event price 0,00 EUR” for chargefree events, when we run a registration process for second event which will be charged?



  • Support Staff

July 30, 2012 at 4:42 pm

I’m not sure I understand the question, but here are a few tips:

Most of the price display can be hidden with css, and these often have ID’s so they can be selected per event.

For example, let’s say the event ID for the free event was 1. To hide only the free event price display in the event list, you’d add something like this to your WP theme’s custom stylesheet:

p#p_event_price-1 {display:none;}

As an alternative, the my custom CSS plugin could be used to make CSS customizations like this one.


August 1, 2012 at 8:55 am

connected question regarding CSS if required questions were not completed, a reminding text occurs. I want this text to be in red letters.

the text is named label.error but I cannot find the appropriate part in the CSS – and in which CSS do I have to look for it? In the eventespresso one or the WP theme one? Thanks dh

  • This reply was modified 11 years, 8 months ago by  dhastedt.


  • Support Staff

August 1, 2012 at 9:06 am

If you’re using one of the Event Espresso included style options (like one of the themeroller options) set in Event Espresso>Template settings, these should make that text red.

If they are not displaying as red, and the themeroller styles are active, the WordPress theme (or another plugin) might be overriding these. Are you familiar with how to use firebug to inspect page elements to see where the style is coming from? Here’s a great video that shows how to use firebug:


August 1, 2012 at 9:29 am

Regarding your advice “hiding the price 0,00 EUR”

we want to hide it everywhere:
in the eventlist and in the registration form.

On Top of the setting page for the event, the unique event identifier was shown as: icils-fost-2-4fe8335f82cef

In the the WordPress theme style.CSS, below the part
/* =Structure
———————————————– */
I entered:

p#p_event_price-icils-fost-2-4fe8335f82cef {display:none;}

and it did not hide anything.
Maybe I need some more detailed instruction.


  • Support Staff

August 1, 2012 at 9:41 am

Try the event_ID, it should be a numerical value. If in doubt, check the page with Firebug to get the element’s ID .


August 1, 2012 at 10:02 am

We have deactivated the themeroller options
as the layout improved by doing this.
So the WordPress theme will override this. But in the WP stylesheet, there is not such a thing like label.error. Neither something like >class=”required my_class error”<
This is what occurs, when I explore these phrases with Firefox and look into the source code.

Thank you for the link to the video. Firebug doesn't show anything. It looks pretty different in the video to the one I have here.


  • Support Staff

August 1, 2012 at 10:09 am

You could try activating themeroller, inspecting the element with firebug, then copy over the applicable style rules from the themeroller style to your WP theme’s custom stylesheet (or create a child theme)

In most cases, it would be something like this:

.event_espresso_form_wrapper label.error, .event_espresso_form_wrapper span.error {
color: #C00;
width: auto;


August 1, 2012 at 10:09 am

Regarding your advice “hiding the price 0,00 EUR”
using the event id worked fine. Thank you very much!

But it works only for the event list. On the registration page there is still the line price: 0,00 Euro.
So what else to do?


August 1, 2012 at 10:15 am

Activating the themeroller will be a big intervention in the layout. I will look if I have time for this tomorrow.


August 1, 2012 at 10:17 am

Regarding hiding elements

We want also to hide the line ‘available spaces’ in the eventlist as well in the registration form. I would appreciate if you could give me such an easy advice like before for hiding the price.

  • This reply was modified 11 years, 8 months ago by  dhastedt.


  • Support Staff

August 1, 2012 at 10:18 am

You only need to activate it for one minute to get the applicable style rules, or try the style rule I pasted in the above thread.


August 1, 2012 at 10:24 am

Yeah!! Worked! Thank you Josh!!!
Now we have the error phrases in red.


August 1, 2012 at 10:25 am

So remaining…
how to hide price:0,00 EUR in the registration form and
how to hide available spaces in both, registration form and event list?


  • Support Staff

August 2, 2012 at 8:51 am

Hiding the price on a specific registration/view details page takes an extra step:

Add a hook to echo the event id to the registration form div. Modify line 6 of the registration_page_display.php template like so:

/* add hook to registration form div */
<div id="event_espresso_registration_form-<?php echo $event_id; ?>" class="event-display-boxes ui-widget">

Then add a style rule to your custom stylesheet like this one:

#event_espresso_registration_form-1 p.event_prices {display:none;}

The available spaces code in the templates can be commented out, or the text can be hidden with CSS:

.spaces-available {display:none;}


August 3, 2012 at 9:02 am

ok then…
hook mit style.css Änderung hat funktioniert. Danke.:)
Nur muss ich jetzt für jedes Event eine Zeile in die CSS einfügen mit der jeweiligen event-id. Ziemlich unkomfortabel.
Vielleicht wäre es eleganter eine Bedingung zu definieren if event-price = 0,00 then hide, else display oder so (ich kann ja kein PHP)


August 3, 2012 at 9:17 am

> spaces-available {display:none;}
enetered into style.css did not work. Available spaces still appeared. The id was wrong additionally. Correct id was .available_spaces . (meanwhile my Firebug is running again) But eventhough with this id, it did not work.
In the event-list-display.php, there are two locations, whereavailable spaces is mentioned.
I have commented out two lines in the event-list-display.php at this location:

if ($display_reg_form == ‘Y’) {


//Comment, available spaces set to hidden 2012.01.03

/* <p id="available_spaces-“>

So now, available spaces will no longer displayed, alas, for all events. That’s a disadvantage as we will have events in future, which are not chargefree,and we want to show the available spaces then.


August 3, 2012 at 9:20 am

sorry for writing in German 🙂
ok then…
hook with style.css modification worked fine. Thank you.:)
But I have to enter this line for each single event as it is event-id related. Pretty uncomfortable.
Maybe it would be more elegant to define a condition if event-price=0,00, then hide, else display or something like this (I don’t know PHP)


  • Support Staff

August 3, 2012 at 2:55 pm

I created a ticket so we can add something like this in an upcoming version of Event Espresso.

The support post ‘not display the Event price 0,00 EUR’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso