Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

thatposhgirl on "wpColorPicker() vs iris()?"

$
0
0

I'm trying to use the color picker in an admin menu. I tried the method described here:

http://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/

But it doesn't seem to be doing anything at all.

Then I tried the method described here for WP 3.6: http://www.paulund.co.uk/adding-a-new-color-picker-with-wordpress-3-5

And no luck there either.

In the first method, the javascript file looks like this:

jQuery(document).ready(function($){
    $('.my-color-field').wpColorPicker();
});

On the other site, that says it is for WP 3.6, it looks like this:

$('.color-picker').iris();

Does it matter if it is calling wpColorPicket() vs iris()?


Viewing all articles
Browse latest Browse all 8245

Trending Articles