Remove "All" option from division and team selectors
This commit is contained in:
@@ -51,7 +51,6 @@ function sp_event_team_meta( $post ) {
|
||||
'name' => 'sp_team[]',
|
||||
'class' => 'sportspress-pages',
|
||||
'show_option_none' => sprintf( __( 'Select %s' ), 'Team' ),
|
||||
'option_none_value' => 0,
|
||||
'selected' => $teams[ $i ]
|
||||
);
|
||||
wp_dropdown_pages( $args );
|
||||
|
||||
@@ -43,7 +43,7 @@ function sp_list_player_meta( $post ) {
|
||||
<p class="sp-tab-select">
|
||||
<?php
|
||||
$args = array(
|
||||
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
|
||||
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
|
||||
'taxonomy' => 'sp_div',
|
||||
'name' => 'sp_div',
|
||||
'selected' => $division_id
|
||||
|
||||
@@ -41,7 +41,7 @@ function sp_table_team_meta( $post ) {
|
||||
<p class="sp-tab-select">
|
||||
<?php
|
||||
$args = array(
|
||||
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
|
||||
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
|
||||
'taxonomy' => 'sp_div',
|
||||
'name' => 'sp_div',
|
||||
'selected' => $division_id
|
||||
|
||||
@@ -98,8 +98,7 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
.sp-data-table input[type="text"],
|
||||
.sp-data-table input[type="number"],
|
||||
.sp-data-table select {
|
||||
.sp-data-table input[type="number"] {
|
||||
min-width: 14px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user