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

Murphy - Home Maintenance & Repair Service HTML Template

Murphy is a handyman repair service Bootstrap HTML Template. It is ideal for either all-rounders or professional teams to introduce the...