Support

Home Forums Event Espresso Premium Need clock icon to break to next line???

Need clock icon to break to next line???

Posted: May 22, 2014 at 4:16 pm


NCG

May 22, 2014 at 4:16 pm

The clock icon works great on the main Events page, but on the home page (http://ncg.wpengine.com/) there is a small section with two side by side events and the clock icon sits to the right of the date text. How can I break the clock span to the next line, just on the home page section? I’ve tried all that I know and nothing has worked.

Thanks ahead of time!


Tony

  • Support Staff

May 23, 2014 at 5:37 am

Hi,

The clock span is displayed on a new line for me – http://take.ms/3rYnw

Can you tell me which browser are you using please?


NCG

May 23, 2014 at 7:04 am

I’m using Firefox 29 / Mac 10.7.5.

The right event looks like the clock icon breaks to the second line but it’s actually only that way because of the width of the date text itself. Here’s what the left event looks like: http://cl.ly/image/2q3G1r1O2w3h

Here’s the code for the date and time: http://cl.ly/image/3M3Q0y0v2x0J

It would be ideal if there was a <br> in between the date and time but there isn’t. Is there a way to break the time to the next line?

Thanks!


Josh

  • Support Staff

May 23, 2014 at 4:54 pm

Hi there,

It turns out that if the the datetime has a name it will automatically add a line break. You can change the code to always put a line break there though. If you open up EEH-Event_View.helper.php and look at line 196 you’ll see this:

Along with that, you can copy over the entire espresso_list_of_event_dates() function to a site functionality plugin or your theme’s functions.php file and it will load from there.


NCG

May 23, 2014 at 6:11 pm

THANKS JOSH! Worked like a charm. Great advice moving it over to the functions.php file.

The support post ‘Need clock icon to break to next line???’ 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