Posted: 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. */ 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. WordPress Version: 4.2.2 |
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? — |
|
|
Hi Lorenzo, I used your css and it still doesn’t hide anything at all. |
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. — |
|
|
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. |
|
Hi Lorenzo, I just recalled that I have to change the code in the event_list_display.php file. |
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. — |
|
|
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. |
Alright, did you need help with anything else? — |
|
|
No, I don’t think we require any more assistance. Everything is good. |
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.