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


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?

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 2 weeks, 1 day ago ago

Topic Tags

Notifications

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