Bootstrap Templates Bundle

Monday, August 26, 2013

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");

No comments:

Post a Comment

Tmart- Free Minimal eCommerce Template

View Details/Live Preview Tmart- Free Minimal eCommerce Template 24+ Pages, 2 Homepages, 3 Shop Pages, 9 Portfolio pages. ...