Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save SiGaCode/d630291ed777a0c9922c to your computer and use it in GitHub Desktop.

Select an option

Save SiGaCode/d630291ed777a0c9922c to your computer and use it in GitHub Desktop.
Make the WP editor display theme styles to make it look more like the frontpage - including columns and more. Create a protected assets folder in Dynamik first and add the CSS file (save), then add this in Dynamik Custom - Functions. http://cobaltapps.com/forum/forum/main-category/web-design-talk/60762-how-to-add-column-styles-to-the-wordpress-e…
add_action( 'init', 'cd_add_editor_styles' );
/**
* Apply theme's stylesheet to the visual editor.
*
* @uses add_editor_style() Links a stylesheet to visual editor
* @uses get_stylesheet_directory_uri() Returns URI of childtheme stylesheet directory
*/
function cd_add_editor_styles() {
add_editor_style( get_stylesheet_directory_uri().'/assets/editorstyles.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment