Support » Themes and Templates » Include font family in editor stylesheet

  • Resolved Guido

    (@guido07111975)


    Hi,

    I use the add_editor_style for better post and page editing experience :-), and I have a stylesheet attached to it:

    add_editor_style( array( 'custom-editor-style.css' ) );

    Of course I want to include the font family from frontend. I have this font enqueued in my functions file.

    My question, should I import the font in file custom-editor-style.css too?

    @import url(//fonts.googleapis.com/css?family=Open+Sans);
    body {font-family: 'Open Sans', sans-serif; font-size:1em; line-height:1.5em;}

    Or is this not necessary? It seems to work without, but am not certain what to do.

    Guido

Viewing 1 replies (of 1 total)
  • Thread Starter Guido

    (@guido07111975)

    Yes, it’s necessary to include the font size in editor stylesheet as well.

    Closing this.

    Guido

Viewing 1 replies (of 1 total)
  • The topic ‘Include font family in editor stylesheet’ is closed to new replies.