mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
Include Lato in the editor
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user