-
Author
Tagged: editor-style.css, add_editor_style
-
February 25, 2016 at 18:38 #106652wannabeParticipant
Hi,
I notice that in the main functions.php file of kleo , add_editor_style(); is being used. In the theme root folder;
wp-content/themes/kleo/
I created a file, editor-style.cssHowever the visual editor (tinymce) is not picking up the new css styles.
I have the following in my css (some of the CSS is there to test/play around);
COPY CODE.mceContentBody.wp-editor { background-color: #555 !important; color: #fff !important; } #tinymce { background: #555 !important; } #tinymce a { color: #fff !important; } .mce-menubar { background: #555 !important; } .mce-container .mce-menubar .mce-toolbar .mce-stack-layout-item .mce-first { background: #555 !important; }
If i user TinyMCE Advanced Professsional Formats and Styles Plugin, the editor-style.css is working. But without the plugin it doesn’t work. Anyway, I do NOT want to use a plugin just to load a stylesheet.
Please help
W
February 25, 2016 at 18:39 #106654wannabeParticipantoh by the way, the stylesheet is also present in the child theme root folder
February 26, 2016 at 14:41 #106839sharmstrModeratorPut the css in Theme Options > General > Quick CSS
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 26, 2016 at 20:36 #106917wannabeParticipantHi, it is working for a bit. But I cannot set the background color of the edit area. Does anyone know how to do that?
I have so far:
COPY CODE.mce-menubar { <-- working background: #555 !important; } .mce-content-body { <-- not working background: #555 !important; } .mce-edit-area { <-- not working background: #555 !important; }
thanks in advance,
WFebruary 27, 2016 at 11:44 #107046sharmstrModeratorSorry, I dont.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.