Please edit content-event.php file and replace this fragment:
- Code: Select all
$date_start = new DateTime(get_post_meta( $post->ID, 'gkevent_date_start', true ));
$date_end = new DateTime(get_post_meta( $post->ID, 'gkevent_date_end', true ));
$counter_start = new DateTime(get_post_meta( $post->ID, 'gkevent_counter_start', true ));
with:
- Code: Select all
$date_start = new DateTime(get_post_meta( $post->ID, 'gkevent_date_start', true ));
$date_end = new DateTime(get_post_meta( $post->ID, 'gkevent_date_end', true ));
$counter_start = new DateTime(get_post_meta( $post->ID, 'gkevent_counter_start', true ));
$datemonth_start = $wp_locale->get_month($date_start->format('m') );
$datemonth_end = $wp_locale->get_month($date_end->format('m') );
and this one:
- Code: Select all
<span class="gk-event-period">
<time datetime="<?php echo $date_start->format('d-m-Y'); ?>" class="gk-event-date-start"><?php echo $date_start->format('d F Y'); ?></time> -
<time datetime="<?php echo $date_end->format('d-m-Y'); ?>" class="gk-event-date-end"><?php echo $date_end->format('d F Y'); ?></time>
</span>
with:
- Code: Select all
<span class="gk-event-period">
<time datetime="<?php echo $date_start->format('d-m-Y'); ?>" class="gk-event-date-start"><?php echo $date_start->format('j ') . $datemonth_start . $date_start->format(' Y '); ?>
</time> -
<time datetime="<?php echo $date_end->format('d-m-Y'); ?>" class="gk-event-date-end"><?php echo $date_end->format('j ') . $datemonth_end . $date_end->format(' Y '); ?></time>
</span>
I'll add these improvements in the next theme update, regarding other things like "when" word, like I said it's from News Show Pro plugin, not the theme files, so you should translate the plugin, or change it directly in wp-content/plugins/gk-nsp directory.