From caa937d015633ad4f65f5aa27c32a1de8fc1bf49 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 13 Dec 2016 13:11:26 +1100 Subject: [PATCH] Load Robot font with frontend stylesheet --- modules/sportspress-style.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/sportspress-style.php b/modules/sportspress-style.php index 62ca4cce..e288f509 100644 --- a/modules/sportspress-style.php +++ b/modules/sportspress-style.php @@ -74,6 +74,13 @@ class SportsPress_Style { public static function add_styles( $styles = array() ) { if ( current_theme_supports( 'sportspress' ) ) return $styles; if ( 'no' === get_option( 'sportspress_styles', 'yes' ) ) return $styles; + + $styles['sportspress-roboto'] = array( + 'src' => '//fonts.googleapis.com/css?family=Roboto:400,500&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese', + 'deps' => '', + 'version' => SP_STYLE_VERSION, + 'media' => 'all' + ); $styles['sportspress-style'] = array( 'src' => str_replace( array( 'http:', 'https:' ), '', SP()->plugin_url() ) . '/assets/css/sportspress-style.css', @@ -81,6 +88,7 @@ class SportsPress_Style { 'version' => SP_STYLE_VERSION, 'media' => 'all' ); + return $styles; }