Custom editor style in child theme
-
Hi,
I have created a child theme and want to add my 2-columns shortcode styling in the page/post editor (so the 2 columns are visible while editing a page/post).
So I have added this in child theme file functions:
function my_theme_add_editor_styles() { add_editor_style( 'custom-editor-style-child.css' ); } add_action( 'admin_init', 'my_theme_add_editor_styles' );But when I copy-paste the shortcode styling from my child theme stylesheet into child theme file ‘custom-editor-style-child’, no result:
.column_left {width:49%; float:left; margin:0 0 10px; text-align:justify;} .column_right {width:49%; float:right; margin:0 0 10px; text-align:justify;}Other changes (such as font-size) are visible.
When am I doing wrong here?Guido
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Custom editor style in child theme’ is closed to new replies.