Archived topic
How to revert to 'default font' on Visual editing?
3 replies · Started by IBNU AHMAD on February 13, 2022
Hi,
I noticed that the font has changed. Is there a way to revert it back?
Thanks.
Hi there,
This should help: https://docs.generatepress.com/article/classic-editor-styling/
Let us know :)
Hi Tom,
The provided code seems to work only if we have installed "Classic Editor" is installed.
Can we please make the same code work even if we have installed "Disable Gutenberg" as in such case "classic editor" plugin is not required.
Regards
Hi there,
this line:
if ( class_exists( 'Classic_Editor' ) ) {
is where we check the Classic Editor is being loaded.
So you could try removing the condition and just load the styles regardless:
add_filter( 'generate_editor_styles', function( $editor_styles ) {
$editor_styles = array( 'assets/css/admin/editor-style.css' );
return $editor_styles;
}, 20 );
Alternatively you would need to ask the plugin author what conditions we could use instead.