• Resolved KZeni

    (@kzeni)


    I’m using SiteOrigin Page Builder and that uses WordPress’ Iris color selector. Is there any change you might update this plugin so the custom colors set here apply to the custom color palette on Iris?

    Here’s example code which customizes the Iris color selector used by Page Builder & others:

    
    function universal_color_palette() {
    	echo '
        <script> // Custom Color Palette
            jQuery(document).ready(function($){
                $.wp.wpColorPicker.prototype.options = {
                    palettes: ["#0887D4", "#2C9B47", "#9ED55D", "#AE3677", "#f2f2f2", "#959597", "#6C7581"]
                };
            });
        </script>
    	';
    }
    add_action('admin_print_footer_scripts', 'universal_color_palette');
    add_action('customize_controls_print_footer_scripts', 'universal_color_palette');
    

    I’d love to see your plugin able to update this Iris color palette so it serves as a central plugin for setting the site’s custom color palette.

    Thank you!

    • This topic was modified 9 years, 7 months ago by KZeni.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Menȝies

    (@kungtiger)

    Since it’s the second request of this kind…

    I’ve added your request and it’ll be available in version 1.7 if all goes as planned.
    Could I ask you to give it a try with Page Builder? I’ve added version 1.7 to the SVN-repo.
    https://downloads.wp.xz.cn/plugin/kt-tinymce-color-grid.1.7.zip

    I’ve tested it with WordPress’ Customizer and WPBakery Visual Composer, and it seems to work well.
    I am not sure if my integration works with Page Builder, and I don’t have it at hand at the moment.
    If Page Builder adds a custom palette the way your code snippet suggests, then I doubt my itegration has any effect. If amongst WordPress’ external JavaScripts is wp-color-picker my addition changes its prototype right away and only once. Any ready event and an alteration of that prototype therein will render mine useless.

    Thread Starter KZeni

    (@kzeni)

    I apologize for the delay. I can confirm that his version of the plugin updates the universal Iris color palette SiteOrigin Page Builder plugin uses.

    Thanks for being so responsive and getting this implemented so quickly!

    Plugin Author Daniel Menȝies

    (@kungtiger)

    Done and dusted.
    Version 1.7 is in the wild.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Feature Request: Add Iris Color Selector Support’ is closed to new replies.