Support

Home Forums Event Espresso Premium Can categories be removed from the calendar without deleting them

Can categories be removed from the calendar without deleting them

Posted: July 23, 2020 at 3:06 pm

Viewing 1 reply thread


Dhohl

July 23, 2020 at 3:06 pm

I would like to remove categories from the listing above the event calendar. Can I do this without deleting them?

If I have to delete them, will I lose the past events and registrants attached to them?

Here is a link to the calendar I am referring to: https://deservicesaz.com/glendale-training-center/

My WordPress and Event Espresso version info:

WordPress Version: 5.3.4

Event Espresso Version: 4.9.82.p

WordPress Address (URL): https://deservicesaz.com

Site address (URL): https://deservicesaz.com


Tony

  • Support Staff

July 27, 2020 at 4:42 am

Hi there,

We don’t have an option to remove them, but you can hide them with some CSS.

For the legend items (not the dropdown), you can use:

#ee-category-legend-li-{term_id} {
    display: none;
}

So right now, you’re ‘Article 9’ term is ID 35, so this:

#ee-category-legend-li-35 {
    display: none;
}

WOuld remove it from the legend.

You can ‘stack’ selectors like:

#ee-category-legend-li-35,
#ee-category-legend-li-99 {
    display: none;
}

Which would hide term id 35 and 99 for example.

The dropdown items use the slug, so need to be selected differently, following on with the Artice 9 term before, the slug is ‘article-9`, so you can hide that with:

#ee-category-submit option[value=article-9] {
    display: none;
}

Again you can use multiple selectors as above:

#ee-category-submit option[value=article-9],
#ee-category-submit option[value=article-9-zoom] {
    display: none;
}

You can add thos to Appearance -> Customize -> Additional CSS.

Will that work for you?

Viewing 1 reply thread

The support post ‘Can categories be removed from the calendar without deleting them’ 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