I am running the most current version of EE and would like to hide specific events from the summary on the home page as well as the events page. Trying to hide a category for Sponsorship opportunities relating to a particular event.
Hiding a single event vis CSS from the /events/ archive can be done like so:
#post-1234 {
display: none;
}
You need to change 1234 to the actual event ID.
That CSS can be added to your themes style.css, though in order to preserve the CSS through theme updates we recommend adding it to either: a child themes style.css, your themes CSS options if it has any, or a plugin such as My Custom CSS.
I’m not quite sure how you set up the home page, so it’s hard to say the best way to hide an event. The HTML/CSS doesn’t make it easy to hide one, though it is possible. Perhaps examine how the events were added to the home page and look to remove one that way? If not, please provide a little bit more info on how the home page events were added to the homepage.
For the homepage I am actually using the Iced Mocha Theme and had the events flowing into the “presentation page” by enabling the Presentation Page Columns.
With that in mind, might you have any advice for me?
Hi, can you post a link to the home page and let us know the event that should be removed?
—
Lorenzo
Viewing 3 reply threads
The support post ‘CSS Code for Hiding Category Events from Home Page and Event Listing Page’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.