Support

Home Forums Event Espresso Premium How to change Event Start Time/End Time HTML?

How to change Event Start Time/End Time HTML?

Posted: August 16, 2012 at 2:44 pm


Ginger

August 16, 2012 at 2:44 pm

Hi,

I’d like to have my start time/end time formatted like this:

Start Time: 8:00am
End Time: 5:00pm

Currently, there is some weird spacing and line breaks being inserted:
http://cl.ly/image/3f070503392d

I can’t seem to find the place to edit this. Can someone point me to the right direction? Thanks!


Josh

  • Support Staff

August 16, 2012 at 4:09 pm

HI Ginger,

You might try wrapping the [ESPRESSO_EVENTS] shortcode in raw tags if there are additional paragraph tags getting added to the source of the page:

[raw][ESPRESSO_EVENTS][/raw]

Otherwise, the registration_page_display.php template is where you’ll find the code that displays the start/end times.


Ginger

August 16, 2012 at 4:13 pm

Hi Josh,

Yes, I tried looking in the registration_page_display.php template file, but the code that controls this is in a function that I can’t quite find.

(Having trouble pasting the code here):
http://cl.ly/image/2q1T2b3N0329

  • This reply was modified 7 years, 9 months ago by  Ginger.
  • This reply was modified 7 years, 9 months ago by  Ginger.


Ginger

August 16, 2012 at 6:41 pm

Hi again,

I just found a different way to call the start time/end time.

Used event_espresso_get_time() instead of the default event_espresso_display_selected_time() in registration_page_display.php.

Thanks!

The support post ‘How to change Event Start Time/End Time HTML?’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Ginger 7 years, 9 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!