I find the text in the editor is very small, can someone tell me how to change this?
I have tried changing various text options in the templates's style sheet, but I must be changing the wrong thing because changes are not reflected in the editor.
I find the text in the editor is very small, can someone tell me how to change this?
I have tried changing various text options in the templates's style sheet, but I must be changing the wrong thing because changes are not reflected in the editor.
There is a line in wp-admin/wp-admin.css that reads body, td, textarea, input, select{. That is the one that controls the font size in the edit box, and obviously controls a lot else as well. Try this:
function change_edit_font_size() {
echo '<style type="text/css">
div#editorcontainer textarea { font-size:20pt }
</style>';
}
add_action('admin_print_styles','change_edit_font_size');
You could edit the wp-admin.css file but you'll have work to do when you update WP. If you have a lot of changes to make a third option would be to load another stylesheet entirely.
Thanks for the reply apljdi, but this didn't work for me, that is adding the font line to style sheet you mentioned.
in wp-admin.css, I inserted a 'font-size: 18px' line in the following code:
textarea,
input,
select {
border-width: 1px;
border-style: solid;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
font-size: 18px;
}
input[type="checkbox"],
input[type="radio"],
input[type="image"] {
border: 0 none;
}
p,
ul,
ol,
blockquote,
input,
select {
font-size: 12px;
}
nothing changed in my editor.
I am running WP ver 2.8.5
That won't work. It will be overridden by the more specific div#editorcontainer textarea. That is the one you need to change.
By the way, I just double checked it. The code I gave you works for me-- copied and pasted right from my earlier comment. Did you try that? It will save a little headache during upgrades.
I would have tried your code, but it wasn't clear which file to append it to (I'm still fairly new to Wordpress), obviously not the themes' css.
No. Not the theme's css. Put it in the theme's functions.php file. Create the functions.php if your theme doesn't have one.
You must log in to post.