Return to Snippet

Revision: 66954
at July 24, 2014 23:32 by razvanstavila


Updated Code
function projectname_setup() {
  add_editor_style( array( 'css/editor-style.css', projectname_font_url() ) );
}

add_action( 'after_setup_theme', 'projectname_setup' );

Revision: 66953
at July 24, 2014 23:31 by razvanstavila


Updated Code
function projectname_setup() {
  // This theme styles the visual editor to resemble the theme style.
  add_editor_style( array( 'css/editor-style.css', projectname_font_url() ) );
}

add_action( 'after_setup_theme', 'projectname_setup' );

Revision: 66952
at July 24, 2014 23:31 by razvanstavila


Initial Code
/* Hook it on init */
/* add_action( 'after_setup_theme', 'projectname_setup' ); */

function projectname_setup() {
  // This theme styles the visual editor to resemble the theme style.
  add_editor_style( array( 'css/editor-style.css', chinaexchange_font_url() ) );
}

Initial URL


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

Initial Title
Wordpress - Add CSS File to Style Visual Editor

Initial Tags
wordpress, style

Initial Language
PHP