Plugin Contributor
Savvas
(@savvasha)
Hi there @adamsigut ,
You can change delimiter at SportsPress->Settings->Events->Delimiter https://snipboard.io/tNmAns.jpg
Thanks,
Savvas
Hello, yes but it is for teams but I want to change format of results. For example the result is 2-1 but I want to change to 2:1. Thank you
Plugin Contributor
Savvas
(@savvasha)
You are right! To be able to change the results format, you need to change the template files. So you will need to copy your template file from wp-content/plugins/sportspress/templates/the-template-you-want-to-change.php to wp-content/themes/your-child-theme/sportspress/the-template-you-want-to-change.php and make the appropriate changes.
For example. For the template event-blocks.php you need to change line 222 from:
<?php echo wp_kses_post( sp_add_link( '<span class="sp-result ' . $event_status . '">' . implode( '</span> - <span class="sp-result">', apply_filters( 'sportspress_event_blocks_team_result_or_time', $results, $event->ID ) ) . '</span>', $permalink, $link_events ) ); ?>
to:
<?php echo wp_kses_post( sp_add_link( '<span class="sp-result ' . $event_status . '">' . implode( '</span> : <span class="sp-result">', apply_filters( 'sportspress_event_blocks_team_result_or_time', $results, $event->ID ) ) . '</span>', $permalink, $link_events ) ); ?>
Thanks,
Savvas
You’re most welcome!
Let us know if you need anything else.
Thanks!