Support

Home Forums Event Espresso Premium CSS Code for Hiding Category Events from Home Page and Event Listing Page

CSS Code for Hiding Category Events from Home Page and Event Listing Page

Posted: April 3, 2015 at 3:13 am


Michael Burns

April 3, 2015 at 3:13 am

hello!

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.

truepointevents.com

Thank you so much for your time in advance!
Nancy


Dean

April 3, 2015 at 5:04 am

Hi,

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.


Michael Burns

April 3, 2015 at 6:17 am

Thank you!

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?

Thank you again!


Lorenzo Orlando Caum

  • Support Staff

April 3, 2015 at 8:29 am

Hi, can you post a link to the home page and let us know the event that should be removed?


Lorenzo

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.

Event Espresso