diff --git a/sportspress.php b/sportspress.php index b41d9f0e..3ac73c27 100644 --- a/sportspress.php +++ b/sportspress.php @@ -316,6 +316,7 @@ final class SportsPress { } // Add image sizes + add_image_size( 'sportspress-crop-medium', 300, 300, true ); add_image_size( 'sportspress-fit-medium', 300, 300, false ); add_image_size( 'sportspress-fit-icon', 128, 128, false ); add_image_size( 'sportspress-fit-mini', 32, 32, false ); diff --git a/templates/player-gallery-thumbnail.php b/templates/player-gallery-thumbnail.php index f8410f45..465cb134 100644 --- a/templates/player-gallery-thumbnail.php +++ b/templates/player-gallery-thumbnail.php @@ -14,7 +14,7 @@ $defaults = array( 'icontag' => 'dt', 'captiontag' => 'dd', 'caption' => null, - 'size' => 'medium', + 'size' => 'sportspress-crop-medium', 'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false, ); diff --git a/templates/player-gallery.php b/templates/player-gallery.php index c79e0d4c..3f475149 100644 --- a/templates/player-gallery.php +++ b/templates/player-gallery.php @@ -22,7 +22,7 @@ $defaults = array( 'captiontag' => 'dd', 'grouptag' => 'h4', 'columns' => 3, - 'size' => 'medium', + 'size' => 'sportspress-crop-medium', 'show_all_players_link' => false, 'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false, ); diff --git a/templates/player-photo.php b/templates/player-photo.php index ce734ec9..3cbdfb56 100644 --- a/templates/player-photo.php +++ b/templates/player-photo.php @@ -16,7 +16,7 @@ if ( ! isset( $id ) ) if ( has_post_thumbnail( $id ) ): ?>
- +
- +