Support

Home Forums Event Espresso Premium Hiding Price on Event Listing Page

Hiding Price on Event Listing Page

Posted: May 13, 2015 at 8:36 pm

Viewing 11 reply threads


Jason Lee

May 13, 2015 at 8:36 pm

Hi there,

I opened a ticket about this a while ago but didn’t get to working it until after the ticket closed but when I try the fix it doesn’t work for me.

https://eventespresso.com/topic/hiding-price-in-list-of-events/

I copied the top code and put it into the child functions.php file but all it does is make another page completely disappear. I changed the page number to the post id that you see when you edit the page as well.

Thanks!


Jason Lee

May 13, 2015 at 8:50 pm

I also tried this and it did not work.

https://eventespresso.com/topic/hide-prices/


Lorenzo Orlando Caum

  • Support Staff

May 14, 2015 at 8:59 am

Hi Jason, what version of Event Espresso are you using and can you provide a link to your events listing page?

Thanks


Lorenzo


Jason Lee

May 18, 2015 at 12:10 pm

The most updated version of the software. I need to send login credentials because it’s a membership site integrated with s2. Is there a form to do that?


Lorenzo Orlando Caum

  • Support Staff

May 18, 2015 at 1:23 pm

Hi Jason,

Are you using Event Espresso 3 or Event Espresso 4?


Lorenzo


Jason Lee

May 18, 2015 at 2:23 pm

Oh whoops…EE3


Lorenzo Orlando Caum

  • Support Staff

May 18, 2015 at 2:53 pm

Hi, this line of CSS will hide the pricing:

.page-id-123 .event_price {display: none;}

The page id above will need to be updated from 123 to the actual page ID. For example, if your page ID was 567, then you would use this:

.page-id-567 .event_price {display: none;}

If you have multiple events listing pages via the [EVENT_LIST] shortcode, then you’ll also need to add CSS rules for those additional pages. The example below will hide pricing from pages with an ID of 789 and 199 respectively:

.page-id-789 .event_price, .page-id-199 .event_price {display: none;}

If the examples above do not work, then your theme may be using different body classes and we’ll need a link to an events listing page on your site.

Finally, if you are running something like a content delivery network (CDN), then that will need to be purged afterwards so that the latest CSS is loaded by your web browser.


Lorenzo


Jason Lee

May 18, 2015 at 3:18 pm

Hey Lorenzo,

Thanks for the speedy help and responses. I’m still having issues getting things working correctly. I can send you credentials to our testing site if that will help.

Thanks!


Lorenzo Orlando Caum

  • Support Staff

May 18, 2015 at 3:31 pm

Hi, the example that I shared relies on that specific body class being available. Its possible that your theme works differently and it isn’t available.

Please use this form and we’ll share feedback:

https://eventespresso.com/send-login-details/


Lorenzo


Jason Lee

May 18, 2015 at 4:09 pm

Great, info sent


Dean

May 19, 2015 at 12:46 am

Hi Jason,

The EE3 Calendar Table template won’t allow the price to be modified via CSS.

Instead you will need to create a custom template.

To try and keep this as simple as possible I’ve created a zip file for you, which I have emailed to you. This zip file contains a modified template that will hopefully make it easy to simply remove the price.

Add the contents of this zip (including the folder) to wp-content/uploads/espresso/templates

Then change your shortcode to read [EVENT_CUSTOM_VIEW template_name=”mycustomtemplate”]

Finally, use the following CSS

.price_data { display: none; }


Jason Lee

May 24, 2015 at 10:48 am

Works like a charm! Thanks

Viewing 11 reply threads

The support post ‘Hiding Price on Event Listing Page’ 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