Support

Home Forums Event Espresso Premium Test event category, use CSS to hide date

Test event category, use CSS to hide date

Posted: April 9, 2019 at 12:29 pm


ICLE

April 9, 2019 at 12:29 pm

I have an event category that has no start or stop date. I need to hide the class=event-datetimes on those pages. Where do I start?


Tony

  • Support Staff

April 9, 2019 at 12:41 pm

Hi there,

A lot of this depends on your theme, but you can usually use something like:

.espresso_event_categories-{category_slug} .event-datetimes {
    display: none;
}

So if your category slug was online-events you’d have:

.espresso_event_categories-online-events .event-datetimes {
    display: none;
}


ICLE

April 11, 2019 at 5:44 am

Worked like a charm.
As a note to others who may need a nudge, I am using “Custom CSS & JS” plugin by https://www.silkypress.com/ to manage these changes.
Thanks Tony!


Tony

  • Support Staff

April 11, 2019 at 5:57 am

Thanks for the nudge, however, you could also just add that CSS to your theme customizer setting.

Appearance -> Customize -> Additional CSS.


ICLE

April 11, 2019 at 6:03 am

Your solution is the simplest and works just fine.

Going to move all these to the child subtheme eventually when the site isn’t in development, which is best practice. I like how that plugin organizes the code.


Tony

  • Support Staff

April 11, 2019 at 2:21 pm

Yep, a lot of it is down to personal preference 🙂

The support post ‘Test event category, use CSS to hide date’ 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