/** * Add custom styles to the WordPress editor to give a better representation of * what the front of the site will look like. * * @since 0.1.0 * @access public * @return void */ function foxtrot_add_editor_styles() { $styles = array('css/editor-style' . foxtrot_get_suffix() . '.css'); if (apply_filters('foxtrot_enable_google_fonts', true)) { $styles[] = foxtrot_google_fonts_string('Raleway:400,600|Lato:400,400italic,700', true); } add_editor_style($styles); }
/** * Load a minified version of the theme's stylesheet along with any other * required theme CSS files. * * @since 0.1.0 * @access public * @return void */ function foxtrot_enqueue_styles() { if (apply_filters('foxtrot_enable_google_fonts', true)) { wp_enqueue_style('foxtrot-google-fonts', foxtrot_google_fonts_string('Raleway:400,600|Lato:400,400italic,700'), array(), null); } }