Wordpress - Add CSS File to Style Visual Editor


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.