Support

Home Forums Event Espresso Premium Remove Start Time and End Time Text from Templates

Remove Start Time and End Time Text from Templates

Posted: May 13, 2013 at 9:11 am

Viewing 1 reply thread


Jeanette Green

    May 13, 2013 at 9:11 am

    Hey Guys,

    I am currently changing the entire layout of the registration_page_display.php to match our requirements, and I need a bit of help regarding the start and end times of an event.

    Currently the start and end times are layed out like this:

    Start Time: 10:30 AM

    End Time: 2:30 PM

    using the following piece of code:

    [code language=”php]<p class=”event_time”>

    <?php

    //This block of code is used to display the times of an event in either a dropdown or text format.

    if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.

    echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default

    } else {

    echo event_espresso_time_dropdown($event_id);

    }//End time selected

    ?>

    </p> [/code]

    What do I need to change in order to remove the ‘start time:’ and ‘end time:’ labels, and have the time displayed on the same line, so that it looks like this: “10:30AM to 2:30PM”

    Best,
    Andrew


    Jeanette Green

      May 13, 2013 at 9:32 am

      Don’t worry about replying to this ticket, I’ve accomplished what I needed by using the template shortcodes instead.

      Viewing 1 reply thread

      The support post ‘Remove Start Time and End Time Text from Templates’ 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 - Staging Server