Support

Home Forums Event Espresso Premium Can no longer hide the Price: Free Event

Can no longer hide the Price: Free Event

Posted: May 11, 2015 at 11:44 am

Viewing 9 reply threads


Susan

May 11, 2015 at 11:44 am

Since we’ve updated the site: http://corvetteclubofontario.com/, I can no longer hide the ‘Price: Free Event’ with the following css placed in our theme’s custom css section:

/* Remove price on event list. */
.event_price, {
display: none;
}

The same issue is on this page as well: http://corvetteclubofontario.com/calendar/events/

Can you please let me know how we can hide the Price: Free Event only.
If there is a price to the event we would like it to remain on display.

WordPress Version: 4.2.2
Event Espresso Version: 3.1.37.3.P


Lorenzo Orlando Caum

  • Support Staff

May 11, 2015 at 11:58 am

Hi Susan, that CSS style should hide all pricing and should look like this:

.event_price {
display: none;
}

Note that this does not differentiate between free events and paid events as there isn’t CSS styles for each. All pricing will be hidden using the pricing option above.

One other option would be to change the messaging from Free Event to something like Complementary or Free Event.

Would that work for you?


Lorenzo


Susan

May 11, 2015 at 12:19 pm

Hi Lorenzo,

I used your css and it still doesn’t hide anything at all.
Ideally we only want to display the paid events.
We just want this line hidden ‘Price: Free Event’ wherever it appears.
If that’s not possible do you have another suggestion?
Is there another way to hide this?


Lorenzo Orlando Caum

  • Support Staff

May 11, 2015 at 12:28 pm

Hi, I was trying to share that it would not have worked as expected even in older versions of Event Espresso.

The CSS class event_price is attached to all events whether they are paid or free. Using that CSS as-is, would hide pricing from all events.

Would this work for you?

Price: Complementary

Again, there isn’t a CSS class to differentiate between paid or free events.


Lorenzo


Susan

May 11, 2015 at 12:38 pm

For now how about:

Price: N/A

How can I change it to that for now?

Some of those events are just listings of other club events displayed in their calendar. Unfortunately, we don’t want to show a pricing for events that are just postings from their calendar. The club itself only hosts a few paid events and that’s why we use your plugin for that.


Susan

May 11, 2015 at 12:59 pm

Hi Lorenzo,

I just recalled that I have to change the code in the event_list_display.php file.
I did it last year. I copied the file into the upload/espresso/templates folder and made the changes there.
I’ll try that for now and see if the client’s ok with that.
Thanks.


Lorenzo Orlando Caum

  • Support Staff

May 11, 2015 at 2:02 pm

Hi, if those changes were made to the templates in the espresso uploads folder then they should still work. I thought you were trying to do a CSS only solution and that isn’t available since event_price is used for all events.


Lorenzo


Susan

May 11, 2015 at 2:26 pm

Yes, I was using the CSS to hide the price but for some reason that doesn’t seem to hide it any more and I don’t know why. I didn’t realize I was hiding the price for all of the events. For whatever reason putting the CSS you gave me in the theme’s custom css section doesn’t even work anymore. It could be something with the current theme. Since I hadn’t made any changes to the site for almost a year I just recalled now that I could modify the file to the templates to change the wording. So instead of Price: Free Event it just shows Price: N/A. I think that works for now. Thanks for your help.
Susan


Lorenzo Orlando Caum

  • Support Staff

May 11, 2015 at 2:46 pm

Alright, did you need help with anything else?


Lorenzo


Susan

May 11, 2015 at 2:50 pm

No, I don’t think we require any more assistance. Everything is good.
Thanks,
Susan

Viewing 9 reply threads

The support post ‘Can no longer hide the Price: Free Event’ 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