Posted By

razvanstavila on 07/24/14


Tagged

wordpress style editor


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

richerimage


Wordpress - Add CSS File to Style Visual Editor


 / Published in: PHP
 

Add a css file to style the visual editor to resemble the theme style.

  1. function projectname_setup() {
  2. add_editor_style( array( 'css/editor-style.css', projectname_font_url() ) );
  3. }
  4.  
  5. add_action( 'after_setup_theme', 'projectname_setup' );

Report this snippet  

You need to login to post a comment.