diff --git a/assets/css/sportspress-style.css b/assets/css/sportspress-style.css index 6336da77..6502a6db 100644 --- a/assets/css/sportspress-style.css +++ b/assets/css/sportspress-style.css @@ -584,7 +584,7 @@ /* Post Content */ -.sp-post-content { +.single-sp_team .has-post-thumbnail .sp-post-content { clear: none; } @@ -608,4 +608,8 @@ .widget .sp-template-event-calendar tbody td { padding: 10px 5px !important; } + + .sp-template-event-performance-icons.sp-template-event-performance-section:nth-child(2n) { + padding-top: 61px !important; + } } \ No newline at end of file diff --git a/includes/sp-template-functions.php b/includes/sp-template-functions.php index 24dab68e..78b8b3ac 100644 --- a/includes/sp-template-functions.php +++ b/includes/sp-template-functions.php @@ -59,6 +59,7 @@ function sp_body_class( $classes ) { $classes[] = 'sp-has-results'; } } + $classes[] = 'sp-performance-sections-' . get_option( 'sportspress_event_performance_sections', -1 ); } elseif ( 'sp_team' == $post_type && 'yes' == get_option( 'sportspress_team_show_logo', 'yes' ) ) { $classes[] = 'sp-show-image'; } elseif ( 'sp_player' == $post_type && 'yes' == get_option( 'sportspress_player_show_photo', 'yes' ) ) { diff --git a/templates/event-performance.php b/templates/event-performance.php index 61bd2e64..15f7d18d 100644 --- a/templates/event-performance.php +++ b/templates/event-performance.php @@ -227,7 +227,7 @@ if ( is_array( $teams ) ): 'link_posts' => $link_posts, 'performance_ids' => isset( $performance_ids ) ? $performance_ids : null, 'primary' => 'primary' == $total ? $primary : null, - 'class' => 'sp-template-event-performance-team-' . $index . ' sp-template-event-performance-section-' . $section_id . ' sp-template-event-performance-team-' . $index . '-section-' . $section_id, + 'class' => 'sp-template-event-performance-team-' . $index . ' sp-template-event-performance-section sp-template-event-performance-section-' . $section_id . ' sp-template-event-performance-team-' . $index . '-section-' . $section_id, ) ); }