Support

Home Forums Event Espresso Premium Remove venue information for virtual events

Remove venue information for virtual events

Posted: July 27, 2016 at 4:40 am

Viewing 2 reply threads


hoffman

July 27, 2016 at 4:40 am

We have various types of events, mainly in physical locations, but one is a monthly telephone conference call.
I would like to remove the “Venue: XXXX” text that automatically appears below the event description, just on this specific category. Can work out how to remove it for all events in the css, but not how to specify only one category of posts… Help?


Tony

  • Support Staff

July 27, 2016 at 5:26 am

Hi there,

The simplest way to do this would be to just add the EE category slug to the body class, that way you can easily target the events only within that category.

Another member shared an example of this here:

https://eventespresso.com/topic/set-ee4-categories-as-class/#post-146098

Although you could just make it so that the class is only added when you are within a single ‘espresso_events’ post type, like this:

https://gist.github.com/Pebblo/6ba85a263e9f9d67d70b1febbe0e6aa9

Its almost identical to the above but only runs when viewing EE events and add the category slug with the prefix ‘category-‘.

Does that help?


Tony

  • Support Staff

July 27, 2016 at 5:31 am

I realized there’s another option for this, you can include the category within the post_class rather than the body class which should allows this to be a little more specific.

We have an example of how to do that here:

https://eventespresso.com/wiki/useful-php-code-snippets/#category-css

Viewing 2 reply threads

The support post ‘Remove venue information for virtual events’ 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