Support

Home Forums Event Espresso Premium Hide single event from event list page

Hide single event from event list page

Posted: July 31, 2018 at 5:47 am

Viewing 2 reply threads


daisy

July 31, 2018 at 5:47 am

Hello guys,
my events are listed here https://www.blog.hoffmann-italia.it/eventi/ with shortcode [ESPRESSO_EVENTS].
There will be a private event in a few weeks and I would like to collect registrations via event espresso. But this event should be only accessible via link (i would like to hide this event from the events page).
Can I do this with some CSS? How?


Josh

  • Support Staff

July 31, 2018 at 7:12 am

Hi Daisy,

Yes, you can hide events on a page with CSS. For example, the page you linked to has this page ID on as a body class: page-id-4024, and each event has a unique article class that can be used in a selector.

So for example, if you wanted to hide the first event in the list, you’d add this CSS:

.page-id-4024 .post-6007{
display: none;
}

If you change the 6007 part to match another event’s post ID, it will hide that other event.


daisy

July 31, 2018 at 8:25 am

Thank you Josh!

Viewing 2 reply threads

The support post ‘Hide single event from event list 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