wpColorPicker is not a function!

i tried to use iris color picker in my plugin admin area but when i implemented i’m getting this error- TypeError: $(…).wpColorPicker is not a functionCode- function sam() { wp_enqueue_style( ‘wp-color-picker’); wp_enqueue_script( ‘wp-color-picker’); } add_action( ‘admin_enqueue_scripts’, ‘sam’ ); <!–HTML–> <input type=”text” value=”#bada55″ class=”ir” /> <!–SCRIPT–> <script type=”text/javascript”> jQuery(document).ready(function($){ $(‘.ir’).wpColorPicker(); }); </script> Why am I getting … Read more

How to customize a divs background dynamically using Advanced Custom Fields Plugin?

I’ve gotten as far as creating custom post types, custom fields and linking those to templates on this first time WordPress project i’m working on, but i seem to have run into a problem i’m not easily able to solve (and i run into these types of problems all the time naturally:). I have created … Read more

Cutomize Colors utility: How to add more configurable colors to a theme

Recent WordPress install, default theme. There are three colors which can be customized from the admin gui, but there are at least three other colors visible on the website which can’t be customized from there: Posts/pages background text colors in posts/pages text and background color in the search field I assume it is possible to … Read more

Modify Javascript Configuration Options for Theme Customizer Colour Picker

I’ve started fully integrating the WordPress Theme Customisation API into my WordPress theme and it’s phenomenal. One issue I’ve encountered is that including the default colour picker is great, but I am trying to determine how to change the configuration options for the Iris colour picker being used. By default the colour picker in the … Read more