• Resolved TreeTrail

    (@aprilschmitt27)


    Hello! Can the default event start ?and end ?times? be changed in Events Manager? If so, I would greatly appreciate any information about where and what modifications can be made. Thank you ~April

Viewing 13 replies - 1 through 13 (of 13 total)
  • Yes, please see the following on managing events:

    https://wp-events-plugin.com/documentation/creating-and-editing-events/

    Thread Starter TreeTrail

    (@aprilschmitt27)

    Jordan, thank you for your very prompt response. Please let me explain more clearly. When the users create a new event, the “Start Time” always defaults to “12:00 AM” and “End Time” to 12:00 AM”. Most of the club’s events run from 9:00 AM to 1:00 PM. How would I go about modifying these default times that are initially presented to the users?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can modify template file at events-manager/templates/forms/event/when.php

    to use templates: https://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/forms/event/when.php

    Thread Starter TreeTrail

    (@aprilschmitt27)

    Thank you very much for this clear instruction Angelo. I now have set up the folders in my child theme. Could you please show me where and how in the file, that I could modify the default start time to 9:00 AM?

    In the “when.php” file, I see this code:”<input id=”start-time” class=”em-time-input em-time-start” type=”text” size=”8″ maxlength=”8″ name=”event_start_time” value=”<?php echo date( $hours_format, $EM_Event->start ); ?>” />”.

    Many thanks for any help.
    ~April

    Try changing the bit that says:

    value=”<?php echo date( $hours_format, $EM_Event->start ); ?>” />

    to this:

    value="09:00" />

    • This reply was modified 7 years, 4 months ago by caimin_nwl.

    Looks like the forum changed the quote marks in my original reply (which I’ve updated now).

    It’s important to use straight quote marks, not the curly or slanted “smart quotes” type. Like this:

    value="09:00" />

    Thread Starter TreeTrail

    (@aprilschmitt27)

    caimin_nwl,

    Sorry to ask again, but this is my first time doing this and I continue to make some mistake. No crash, but no change. Can you see please see if you recognize where I’ve messed up?

    Here’s my path:
    /home/wilmin54/public_html/dev.wilmingtontrailclub.org/wp-content/themes/kleo-child/events-manager/forms/event/when.php

    And here’s my file modification:

    <input id=”start-time” class=”em-time-input em-time-start” type=”text” size=”8″ maxlength=”8″ name=”event_start_time”

    //Original open start_time code:
    //value=”<?php echo date( $hours_format, $EM_Event->start ); ?>” />

    //Modified default start_time code:
    value=”09:00″ />

    Very thankful for any help.

    Thread Starter TreeTrail

    (@aprilschmitt27)

    ps: Even though it doesn’t look like it, I did copy in a pair of strait quotes from the existing code.

    Does the whole input tag look like this? It should do….

    <input id="start-time" class="em-time-input em-time-start" type="text" size="8" maxlength="8" name="event_start_time" value="09:00 />

    Sorry, there was a typo the first time around. It should be like this:

    <input id="start-time" class="em-time-input em-time-start" type="text" size="8" maxlength="8" name="event_start_time" value="09:00" />

    Thread Starter TreeTrail

    (@aprilschmitt27)

    No change caimin. But I’m more thinking that it’s my folder structure that’s wrong, because I saved words without coding in the customized “when.php file” …and it had no error. So maybe it’s not finding the file. Below is a copy of the end of my path:

    wp-content/themes/kleo-child/events-manager/forms/event/when.php

    Try:

    /wp-content/themes/kleo-child/plugins/events-manager/forms/event/when.php

    Thread Starter TreeTrail

    (@aprilschmitt27)

    This works perfectly gentleman! I am so sorry that I missed that exact directory sequence, when it was first indicated. I didn’t take the word “plugins” literally. Your kind patience is greatly appreciated! My users will be very happy.

    ~April

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Event Default Times?’ is closed to new replies.