diff --git a/templates/league-table.php b/templates/league-table.php index 928b9d27..c39064fd 100644 --- a/templates/league-table.php +++ b/templates/league-table.php @@ -117,10 +117,12 @@ foreach ( $data as $team_id => $row ): $name_class = ''; + $name = $before . $name . $after; + if ( $show_team_logo ): if ( has_post_thumbnail( $team_id ) ): $logo = get_the_post_thumbnail( $team_id, 'sportspress-fit-icon' ); - $name = '' . $before . $name . $after; + $name = '' . $name; $name_class .= ' has-logo'; endif; endif;