Support

Home Forums Event Espresso Premium Removing Date and Time Information from Specific Events

Removing Date and Time Information from Specific Events

Posted: December 8, 2016 at 8:09 pm


stlculinary

December 8, 2016 at 8:09 pm

I would like to remove the time and date range from specific events (3 total) without changing the display of the rest of our events, which do have specific dates and times. Can this be done with CSS and if so where should it be implemented in WordPress? Thank you for your help in advance.


Josh

  • Support Staff

December 8, 2016 at 8:18 pm

This can be done with CSS, and if you are using WordPress 4.7, you can add additional CSS into the built in Customizer.

One way to target the dates for only specific events is you specify the event ID when you write the CSS rule. For example, if you want to hide the dates for event ID 217, your CSS will look like this:

#ee-event-datetimes-ul-217 {
display:none;
}


stlculinary

December 8, 2016 at 8:23 pm

Thank you for the quick reply! I pasted that code into my style sheet and updated the ID but see no change. This would go in the style sheet for my theme, correct?


stlculinary

December 8, 2016 at 8:36 pm

Actually, I was able to locate the custom CSS area in my theme and now it works but still shows date times and sales dates in the description is there a way to remove that information as well?

Thank you for your help. I am new to Event Espresso but so far I am really impressed.


stlculinary

December 8, 2016 at 8:44 pm

I apologize, I am getting familiar with Event Espresso still. To be specific, I am actually wanting to remove the sales dates and access dates from the ticket details.


Josh

  • Support Staff

December 9, 2016 at 7:34 am

The CSS to hide those is as follows:

.postid-217 .tckt-slctr-tkt-datetimes-sctn,
.postid-217 .tckt-slctr-tkt-sale-dates-sctn {
display:none;
}


stlculinary

December 13, 2016 at 8:00 pm

Thank you. that helped to take care of what I needed to do. I appreciate it! On the default event list page (from the Templates menu), is there a way for me to remove particular event from appearing on that page?


Josh

  • Support Staff

December 14, 2016 at 12:31 pm

Yes, and the recommended solution does not involve using CSS, and instead you can use a bit of PHP. Example code in this gist:

https://gist.github.com/joshfeck/31c5055be20e5e4dfaf333ab7a4090e9

The support post ‘Removing Date and Time Information from Specific Events’ 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