Wordpress - Add Buttons in the Visual Editor


/ Published in: PHP
Save to your folder(s)

Courtesy CSSTricks (http://css-tricks.com/snippets/wordpress/turn-on-more-buttons-in-the-wordpress-visual-editor/)


Copy this code and paste it in your HTML
  1. function add_more_buttons($buttons) {
  2. $buttons[] = 'hr';
  3. $buttons[] = 'del';
  4. $buttons[] = 'sub';
  5. $buttons[] = 'sup';
  6. $buttons[] = 'fontselect';
  7. $buttons[] = 'fontsizeselect';
  8. $buttons[] = 'cleanup';
  9. $buttons[] = 'styleselect';
  10. return $buttons;
  11. }
  12. add_filter("mce_buttons_3", "add_more_buttons");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.