Support » Themes and Templates » Visual editor formating according predifined css – possible?

  • Resolved peterson.julia


    I would like to ask if there is a way to see in visual editor in wordpress the text formatted according the css , basically the way how it displays on page (so the color, size, font is applied already in visual editor)?

    Thank you,

Viewing 1 replies (of 1 total)
  • Hi Julia,
    This is already a part of the twenty ten and twenty eleven theme, if you look in the theme directory you will see a file called editor-style.css and editor-style-rtl.css

    These are used to style the editor so you could look to see if your theme supports editor styles.

    If your theme does not have the editor-style.css then you would need to create it.

    Then in functions.php add the following lines.

    // This theme styles the visual editor with editor-style.css.

    Then look at how the editor-style.css is structured in the twenty eleven theme, add editor styles to match your theme’s styles.



Viewing 1 replies (of 1 total)
  • The topic ‘Visual editor formating according predifined css – possible?’ is closed to new replies.