diff --git a/includes/admin/settings/class-sp-settings-general.php b/includes/admin/settings/class-sp-settings-general.php index 9ca080fb..70cd9764 100644 --- a/includes/admin/settings/class-sp-settings-general.php +++ b/includes/admin/settings/class-sp-settings-general.php @@ -28,9 +28,7 @@ class SP_Settings_General extends SP_Settings_Page { add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) ); add_action( 'sportspress_admin_field_country', array( $this, 'country_setting' ) ); add_action( 'sportspress_settings_save_' . $this->id, array( $this, 'save' ) ); - - if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && array_key_exists( 'sportspress-general', $styles ) ) - add_action( 'sportspress_admin_field_frontend_styles', array( $this, 'frontend_styles_setting' ) ); + add_action( 'sportspress_admin_field_frontend_styles', array( $this, 'frontend_styles_setting' ) ); } /** @@ -195,11 +193,13 @@ class SP_Settings_General extends SP_Settings_Page { $this->color_picker( __( 'Heading', 'sportspress' ), 'sportspress_frontend_css_heading', $colors['heading'] ); $this->color_picker( __( 'Link', 'sportspress' ), 'sportspress_frontend_css_link', $colors['link'] ); - ?>
- + if ( ( $styles = SP_Frontend_Scripts::get_styles() ) && array_key_exists( 'sportspress-general', $styles ) ): + ?>
+ +