This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* .... some other theme functions ... */ | |
/* Custom Default Colors for WP Colorpicker */ | |
function theme_name_color_palettes() { | |
if(wp_script_is('wp-color-picker', 'enqueued') ){ | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* .... some other theme functions ... */ | |
/* Custom Default Text Colors for WP TinyMCE Editor */ | |
function theme_name_text_colors( $init ) { | |
$default_colors = ' | |
"000000", "Black", | |
"FFFFFF", "White" | |
'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ... */ | |
/* add the below to your functions.php | |
the th_ prefix is just to avoid naming collisions | |
basically copied most of this from the cctm and woocommerce code and modified as needed | |
*/ | |