WordPress: Add  Button to the Visual Editor (TinyMCE)

For some reason, the <hr> tag (horizontal rule) is not enabled by default on the WordPress Visual (TinyMCE) Editor. Fortunately it is very easy to enable, with a little addition to your functions.php file.

function enable_more_buttons($buttons) {
$buttons[] = 'hr';

/*
Repeat with any other buttons you want to add, e.g.
$buttons[] = 'fontselect';
$buttons[] = 'sup';
*/

return $buttons;
}
add_filter("mce_buttons", "enable_more_buttons");
Free Graphics, Icons, Tutorials
Free Graphics Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector GraphicsFree Music Controls Vector Icon Pack
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358