• Hello! My online events have global audiences, so it’d be helpful if I could display the time zone (EDT / UTC-4). Is there a way to enable that option and display that information?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    For that you should make changes in relevant template file (vsel-page-template, vsel-widget-template, or vsel-template-support).

    Add this:

    
    // Timezone
    $output .= '<div class="vsel-meta-timezone">';
    $output .= esc_attr__( 'Timezone: ', 'very-simple-event-list' );
    $output .= get_option('timezone_string').' | UTC '.get_option('gmt_offset');
    $output .= '</div>';
    

    But in case of a plugin update you will loose this again.

    Guido

    Thread Starter kgagne

    (@kgagne)

    Hi, Guido —

    Thank you for the sample code! Alas, I’m not much of a developer, and I’m not sure where in the indicated files I would add these lines.

    I also wouldn’t want the changes to be lost with a plugin update. The documentation says, “You can only override the single event page via your (child) theme.” Could this functionality be extended to the other templates?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I fully understand you don’t want to make changes to plugin files.

    Unfortunately it’s not possible to override other template files. That’s not how the plugin is build.

    I’m working on a custom hook system so you are able to add stuff to (for example) the event details section without changing plugin files. But still you need some coding knowledge to do this.

    For now you can add a custom field/value by using the Advanced Custom Fields plugin. That way you can add some extra info about timezone. Check the plugin info for more info about this.

    Guido

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display timezone’ is closed to new replies.