Adauga butoane noi in editor

Prin codul de mai jos adaugat in functions.php se vor aduga 3 noi butoane in editor cand se scrie un nou articol.

[codesyntax lang=”php” lines=”no” container=”div”]

function tcb_add_tinymce_buttons( $tinyrowthree ) {
  $tinyrowthree[] = 'hr';
  $tinyrowthree[] = 'sub';
  $tinyrowthree[] = 'sup';
  return $tinyrowthree;
}
add_filter( 'mce_buttons_3', 'tcb_add_tinymce_buttons' );

[/codesyntax]

2 thoughts on “Adauga butoane noi in editor

  1. care fac pana la urma ce?

    As vrea sa le adaug si eu in blogul ce tocmai il construiesc pe WordPress, dar nu stiu ce functionalitati noi aduc aceste butoane…

Comments are closed.