Last active
August 29, 2015 14:18
-
-
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…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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