Support

Home Forums Event Espresso Premium Removing tome from upcoming event widget

Removing tome from upcoming event widget

Posted: April 6, 2015 at 1:25 pm

Viewing 5 reply threads


Joost

April 6, 2015 at 1:25 pm

I would like to remove the time from the espresso upcoming event widget (leaving the date in place). I searched in the code base and to my understanding this piece code controls this:

EEW_Upcoming_Events.widget.php

However, my understanding of PHP is too limited to obtain the effect I need. How can I do that? Is there a way I can avoid the edit is overwritten in an update? Can I put a copy in the site specific folder?

fun


Joost

April 6, 2015 at 1:28 pm

PS: I’m using EE4


Lorenzo Orlando Caum

  • Support Staff

April 6, 2015 at 2:48 pm

Hi, does this CSS do anything when applied?

ul.ee-upcoming-events-widget-ul .ee-event-datetimes-li 
	{height: 1.5em;
    overflow: hidden;
}


Lorenzo


Joost

April 7, 2015 at 2:41 pm

Yes! Frankly, I have no clue whatsoever why and how this works but it does the job! Thanks!


Joost

April 7, 2015 at 2:49 pm

Testing a bit further: it DOES work with “show data range” is NO, but not when if YES.

A further question: how could I remove the extra line between the event, taking up precious screen space?


Josh

  • Support Staff

April 10, 2015 at 6:22 am

Hi Joost,

The quick way to find out is use a tool like Firebug or Chrome’s Dev tools. Basically, you change the margin to 0 for the Event title by adding the following to your custom stylesheet:

.ee-upcoming-events-widget-title-h5 {
  margin: 0;
}
Viewing 5 reply threads

The support post ‘Removing tome from upcoming event widget’ 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