Site logo

[Support request] How to revert to ‘default font’ on Visual editing?

Home Forums Support [Support request] How to revert to ‘default font’ on Visual editing?

Home Forums Support How to revert to ‘default font’ on Visual editing?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2116918
    IBNU AHMAD

    Hi,

    I noticed that the font has changed. Is there a way to revert it back?

    Thanks.

    #2117186
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This should help: https://docs.generatepress.com/article/classic-editor-styling/

    Let us know 🙂

    #2482946
    Deepak

    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

    #2483164
    David
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.