Small Bizz Websites £1070+

}

Monday to Friday

10.00 am to 5.00 pm

TAP TO CALL

0141 439 1439

 (About Us) FIZZ designs & SEO Glasgow

SME News - Scottish Enterprise Awards: Best Web Design & SEO Agency 2024 & 2026

How to setup custom colours within wordpress tnymce. Helps save time and you’ll always have the colours within the tinymce colour pallet.

Source:

http://digitalmyway.co.uk/2013/05/custom-colour-palettes-in-tinymce-with-wordpress/

Updated for WordPress 3.9

Add bolded text below after the [endif;] at very bottom of functions file. See example screenshot below.

function dmw_custom_palette( $init ) {
$custom_colours = ' "111111", "Dark Grey", "555555", "Mid Grey", "CCCCCC", "Light Grey", "3366FF", "Blue" ';    
$init['textcolor_map'] = '['.$custom_colours.']';
 
return $init;
}
add_filter('tiny_mce_before_init', 'dmw_custom_palette');

 

add_filter('tiny_mce_before_init', 'dmw_custom_palette');

 

And here’s what we get:

Your new custom colour palette