Add subscript and superscript buttons to editor

Adding this PHP snippet to the functions.php of your wordpress template will add subscript and superscript buttons to the wordpress editor.

 

 

function enable_more_buttons($buttons) {
$buttons[] = 'sub';
$buttons[] = 'sup';
return $buttons;
}
add_filter("mce_buttons_3", "enable_more_buttons");

Be Sociable, Share!

Leave a comment