jQuery(document).ready(function(jQuery){ jQuery('.ig-color-picker').wpColorPicker(); }); var CpickerOptions = { // you can declare a default color here, defaultColor: false, // a callback to fire whenever the color changes to a valid color change: function(event, ui){}, // a callback to fire when the input is emptied or an invalid color clear: function() {}, // hide the color picker controls on load hide: true, // show a group of common colors beneath the square palettes: true }; jQuery('.ig-color-picker').wpColorPicker(CpickerOptions);