From ea717c00ffe1a63b64541a07e1604f18a95d5b04 Mon Sep 17 00:00:00 2001 From: Braad Date: Thu, 14 May 2015 00:58:14 -0700 Subject: [PATCH] Include Lato in the editor --- includes/admin/admin.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/admin/admin.php b/includes/admin/admin.php index 440858c..f105d64 100644 --- a/includes/admin/admin.php +++ b/includes/admin/admin.php @@ -85,7 +85,11 @@ add_action( 'admin_enqueue_scripts', 'trestle_admin_actions' ); */ function trestle_admin_actions() { - // Include the main stylesheet in the editor + // Google fonts. + $font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Lato:300,400,700' ); + add_editor_style( $font_url ); + + // Include the main stylesheet in the editor. add_editor_style( get_stylesheet_uri() ); } @@ -293,4 +297,4 @@ function trestle_register_required_plugins() { ); tgmpa( $plugins, $config ); -} \ No newline at end of file +}