Sunday, July 7, 2013

How to display more buttons in the WordPress HTML Editor

Some buttons (like <hr/> tag, <sub> tag ...) aren't there by default in the WordPress visual HTML editor, but you can turn them on easily. 

 Here all steps:
1. Click on the left side Menu Appearance -> Editor
2. Edit functions.php file (click on the right side)
3. Add this code

function add_more_buttons($buttons) {
$buttons[] = 'hr';
$buttons[] = 'del';
$buttons[] = 'sub';
$buttons[] = 'sup';
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
$buttons[] = 'cleanup';
$buttons[] = 'styleselect';
return $buttons;
add_filter("mce_buttons_3", "add_more_buttons");

Disqus Comments