Support

Home Forums Event Espresso Premium EE4 – remove event times from event detail page

EE4 – remove event times from event detail page

Posted: November 10, 2014 at 3:40 am

Viewing 7 reply threads


chris lawson

November 10, 2014 at 3:40 am

Hi, I’ve found a few posts involving the same request but these must have been for EE3 as the CSS solution to just hide the event times isn’t possible for me on EE4. The event date (which I want to keep displayed) and times aren’t separated out into different elements, as below:

<li id=”ee-event-datetimes-li-1″ class=”ee-event-datetimes-li”>Event<br><span class=”dashicons dashicons-calendar”></span>15th January 2015 – 17th January 2015<br><span class=”dashicons dashicons-clock”></span>9:00 am – 5:00 pm

How would you advise I achieve this? Can I just override the template file?

Thanks


Lorenzo Orlando Caum

  • Support Staff

November 10, 2014 at 9:59 am

Hi Chris,

Try adding this to your child theme’s stylesheet or a plugin like Reaktiv CSS builder or My Custom CSS:

.event-datetimes {display: none;}


Lorenzo


chris lawson

November 10, 2014 at 4:51 pm

Hi Lorenzo, if you look at the markup I posted though, that won’t have the effect I’m looking for, as that class isn’t used. In the markup I posted, which is what’s on the event detail page, both the event date and time are in the same

  • element, with nothing to distinguish them. So would this not require a template modification?

  • Lorenzo Orlando Caum

    • Support Staff

    November 10, 2014 at 7:27 pm

    Hi Chris,

    That should remove the datetimes on the single event page. Could you share a link to any event so we can take a look?


    Lorenzo


    chris lawson

    November 11, 2014 at 2:45 am

    Hi Lorenzo,

    The issue is that your code just hides all of it, the event date and the event times. I only want to hide the times. That’s why I posted the snippet of markup, so you can see that it’s not possible to target just the times with CSS.


    Dean

    November 11, 2014 at 3:56 am

    Hi,

    If you use this function http://pastebin.com/7CMgV2Yw in a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) it will remove the time for you.

    It does this because that function will over rule the default one, and I commented out the time in that function (line 20).


    chris lawson

    November 11, 2014 at 5:08 am

    Thanks Dean, that works perfectly


    Dean

    November 11, 2014 at 5:18 am

    You’re welcome!

    Viewing 7 reply threads

    The support post ‘EE4 – remove event times from event detail 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