I love it when I find the answer to a question that’s been annoying me…
I’ve been generally using the WYSIWYG editor in WordPress for quite some time now, having decided that I’d rather write text than tags[1], but it does have a drawback or two. When using the HTML editor, it’s very easy indeed to add buttons to the toolbar to add standard bits of code or style, such as applying the Small Caps style that I use from time to time. But the WYSIWYG editor, better known as TinyMCE, is a different beast altogether. People who can code have written plugins that add buttons, but making these work is beyond my minimal coding skills and limited patience. So, I’ve been looking for a solution involves less work. It tried the TinyMCE Advanced plugin, but that was overkill for what I wanted, and I didn’t like the way it added lots of surplus styles to the drop down thingy rather than the one I wanted.
So, after multiple searches, I was delighted to find Customizing TinyMCE without Advanced TinyMCE by Esther S White, which offered a simple solution: add a few lines of code to your theme’s functions.php file, put the CSS for the styles you want into a subfolder of your theme and the job’s done.
And yes, it works. I’ll have a further look at this technique, and see what else I can do to the editor, but for now, I’m quite happy to have found a solution to a problem that’s been annoying me for months, on and off.
Thanks, Esther
Update: I’ve since switched to using TinyMCE and its optional Advanced Styles plugin. Less work overall, and more update-proof.
[1] Changing my old habits of hand-coding, but never mind