Support

Home Forums Event Espresso Premium Remove Start & End Dates from certain registrations

Remove Start & End Dates from certain registrations

Posted: February 28, 2014 at 8:17 am


Jason Keller

February 28, 2014 at 8:17 am

I need to remove Start & End Date & Time for certain events that are ongoing. I do not want to remove this for all events, just on-going events.

Event Espresso version 3.1.36.1.P & WordPress version: 3.8.1
https://tekdoginc.com/classes/class-sign-up/?ee=51


Tony

  • Support Staff

February 28, 2014 at 12:55 pm

Hi Jason,

There’s a few options you can use for this.

You can set the Event status to Ongoing then remove the dates from the event. The ongoing status basically just ignores the dates set within the Event. However the event will be removed from the Calendar and anywhere else that dates are used within the query. ‘Date’ will still be displayed only with a blank value next to it so this will need to still be removed using CSS or editing the templates.

The other option (which I would recommend using) is to use CSS to hide the prices for those specific events.

So for example the event you posted has an ID of 51, using Chrome Dev Tools you can find how to specifically target this event. The registration form is within a Div with id=”espresso-event-id-51″ and we want to target the p tags with a class of start_date, so we can use the following CSS to hide the dates:

#espresso-event-id-51 p.start_date {
     display: none;
}

The same method can be used for the Event List page also (in your case class-sign-up)

Does that help?

The support post ‘Remove Start & End Dates from certain registrations’ 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