Premium Responsive WordPress Themes

WordPress Editor Customization. How to Add Custom Buttons Manually

WordPress is the best ever CMS produced, but still as any other thing considered to be ideal, it can be improved. This blog post we’d like to dedicate to the most used used part of this content management system i.e. the WYSIWYG editor.

If you think that WordPress editor is really cool, you’ll be right, but what if you could improve it. I bet you have a number of favorite tags. Like h3 or a shortcode you’re using frequently in your posts, and every time you’re using it, you have to Copy and Paste it, over and over again. This is not hard to do, but if you count the time you spend every week on this action you will see that you spend quite a lot of time.

So how to make this action consume four times less time? All you need it to create a button. Single button allows using your favorite tag without some unnecessary body movement.

Either I’m so lazy or those buttons can really help.

So How to Get This Done?

Everything is quite easy and straightforward, I assure you you’ll be able to do it just like that.

What made me add those buttons to the editor?

I got the habit to watch the code through the Text tab when TinyMCE editor was adding extra < br > tags, and that was the this I really hated. This made me to leave Visual tab like for ever, meaning that I’m not using it at all.

Adding couple more buttons to the editor was an automation that I’m looking for. Every blog has it’s own styles for text formatting, that’s why you can easily customize WP editor for your own needs.
This is how the latest version WP editor looks like.

And you can make it look whatever you like.

So, the first thing you need to do is open your functions.php file, you can find it via:

QTags.addButton( 'p', 'p', '

', '

' );:

Easy as a pie isn’t it? That’s because WordPress was created by humanz for humanz 🙂

* * *

That’s it, as I told you it’s really easy to add extra buttons to WordPress editor.

If you have any questions feel free to ask them in the comments below.

Bio: The article is written by Alex Bulat

Sometimes I feel like there is not enough furry covers for sun-beds on the upper deck of a yacht,
but then suddenly I wake up and have to do some blogging. Luckily, I know where to get things you need...
Psst, looking for a new theme for your site?Ask me where to get one,
or just say hello onGoogle+.