About
Back
Who We Are
Partners & Sponsors
Why Organic
Prairie Directory
Back
Find a Farmer
Find a Business
Resources
Back
Get Started
Grain Resources
Back
Grain Transition
Grain Production
Grain Marketing
Grain Exporting
Livestock Resources
Back
Livestock Transition
Livestock Production
Livestock Marketing
Horticulture Resources
Back
Horticulture Transition
Horticulture Production
Horticulture Marketing
Green Manure Tool Kit
Podcast
Farmer Profiles
Additional Resources
Contact
Back
Get in Touch
Advertise with Us
Get Started
Search
Get Started
Customizer
You need to enable JavaScript to run this app.
TinyMCE colors
copy to functions.php
echo("\$init['textcolor_map'] = '["); $themeColors = explode("\n", get_field('theme_colors', 'option')); foreach($themeColors as $themeColor) { $themeColorSplit = explode(":", $themeColor); if(sizeof($themeColorSplit) > 1) { $colorHex = $themeColorSplit[1]; $colorHex = preg_replace("/\s+/", "", $colorHex); $colorHex = preg_replace("/;/", "", $colorHex); $colorHex = preg_replace("/#/", "", $colorHex); $colorName = $themeColorSplit[0]; $colorName = preg_replace("/^--/", "", $colorName, 1); echo('
"'. $colorHex . '", "' . $colorName . '",
'); } } echo ("]'"); ?>