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 🙂

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 6 days, 20 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!