NB: Make sure you do a back up of your theme, files and database before attempting the tutorials

Web Hosting Canada

Last modified : Sep 03 2022

Estimated reading time : 1 minute, 6 seconds - 75 words

With this tutorial, we will show how to add a function which will automatically add TinyMCE WordPress buttons by default. This tutorial was created after a lot of our clients noticed the buttons had disappeared after a core WordPress update.

With this function, all of your TinyMCE buttons will be accessible in your WordPress pages and posts.

Copy/paste this function in your functions.php file:

/////////////////////////////////////////////// ENABLE ALL EDITOR ///////////////////////////////////////////////////// 
function enable_more_buttons($buttons) { 
	$buttons[] = 'fontselect'; $buttons[] = 'fontsizeselect'; 
	$buttons[] = 'styleselect'; $buttons[] = 'backcolor'; 
	$buttons[] = 'newdocument'; $buttons[] = 'cut'; 
	$buttons[] = 'copy'; $buttons[] = 'charmap'; 
	$buttons[] = 'hr'; $buttons[] = 'visualaid'; 
	return $buttons; 

add_filter('mce_buttons_3', 'enable_more_buttons'); 

function myformatTinyMCE( $in ) { 
   $in['wordpress_adv_hidden'] = FALSE; return $in; 
add_filter( 'tiny_mce_before_init', 'myformatTinyMCE' ); 

Short, but very important, tutorial for managing your pages or posts.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>