W3C-Validator-errors in event blocks
-
Hello SportsPress-team,
when date-/timeformat in WordPress is changed, e.g. german format “dd.mm.yyy”, event blocks causes a W3C-validator-error because date format isn’t “yyyy-mm-dd”.
To avoid this errors, you have to change line 100 in sportspress/templates/event-blocks.php (v1.4) from
<time class="event-date"><?php echo get_the_time( get_option( 'date_format' ), $event ); ?></time>
to
<time class="event-date" datetime="<?php echo get_the_time( 'Y-m-d', $event ); ?>"><?php echo get_the_time( get_option( 'date_format' ), $event ); ?></time>
It would be nice, to fix this with the next update.
Thanks for your great work.
Michael
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘W3C-Validator-errors in event blocks’ is closed to new replies.