Adding Custom editor buttons in wordpress

Add these below code into functions.php file:

/* Custom editor buttons */
function enable_more_buttons($buttons) {
  $buttons[] = 'hr';
  $buttons[] = 'sub';
  $buttons[] = 'sup';
  $buttons[] = 'fontselect';
  $buttons[] = 'fontsizeselect';

  return $buttons;
}
add_filter("mce_buttons_3", "enable_more_buttons");

Comments

Popular posts from this blog

Adobe Photoshop CS6 13.1.2 Extended Final Portable Download

Owl carousel slider shortcode in WordPress for Showing Posts or custom Posts

How to display related post by category