The tag has no usage guidance.

learn more… | top users | synonyms

6
votes
2answers
4k views

How do I implement the Wordpress Iris picker into my plugin on the front-end?

This question here is asking the same question as I am, but there were no adequate answers nor a selected correct answer so I am asking again hoping if I ask in a more coherent manner I might get a ...
4
votes
2answers
2k views

How to add color picker to widgets?

I have some problems adding the wpColorPicker to a Widget. Does anyone have a working sample? It only works when I click on 'Save' or reload the page, but when I drag a new widget to the area it will ...
4
votes
1answer
7k views

Change background color with a dominant from picture

Im looking for a smart way to change the background color for a page, but taking the #xxxxxx value from the dominant color of the headline picture. In twenty eleven theme, I can set a random image ...
4
votes
1answer
1k views

How to add Color Picker in Theme Options for the following?

I have a landscaping09 theme. This is what I want: A theme options page with the following options: ->Theme color background change (with colorpicker) or url of the image ->General Navbar color ...
3
votes
1answer
75 views

Is it possible to make Wordpress core (iris)colorpicker-wrapper higher instead of making colorboxes scale smaller?

I'm having an issue using wordpress core colorpicker. I'm retrieiving random number of colors from the server (that fetches colors a specific website). These colors I want to use within the ...
2
votes
2answers
2k views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
2
votes
1answer
3k views

Adding Colorpicker Field To Category

I want to add a custom field to my categories where the user can color code them. I've added the field but I want to use built in colorpicker (either tinyMCE or the farbtastic) to give the user an ...
2
votes
1answer
167 views

Wordpress Iris Colour Picker adding iOS touch events

I've implemented an Iris Colour Picker into the front-end of my theme thanks to the help provided in this question and all works well on the desktop front. However, it seems as though when it comes to ...
2
votes
1answer
736 views

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 ...
2
votes
1answer
2k views

How to use rgba color from theme customizer color picker

I'm creating a wordpress theme and in that I am using the theme customizer to allow users to change the accent color of my theme. Now everything is working fine but few of my elements need to have the ...
2
votes
0answers
45 views

iris color picker in widget - click event doesn't fire when initially when widget is first created

I added the wordpress(iris) color picker to a widget, and the color picker is not clickable when the widget is first created. My guess is that it's where/how the javascript file is being enqueued, but ...
2
votes
0answers
62 views

Color Picker (iris) in widget - refresh when edited in Customizer

I have added the WordPress Core color picker (iris) to a widget I developed, but when you edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does ...
2
votes
1answer
66 views

Add colorpicker to featured image

I'm trying to add a colorpicker to the featured image meta-box. Here is some background: I use the featured image meta-box to place parallax background images. Because a user is allowed to place text ...
2
votes
1answer
78 views

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 ...
2
votes
2answers
820 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
2
votes
2answers
7k views

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 ...
1
vote
3answers
802 views

Color Picker Showing Twice When Widget Added to Sidebar

I'm trying to create a plugin that is basically just a WordPress widget. I'm having great difficulty getting the WordPress color picker to function correctly when my widget is first added to the ...
1
vote
1answer
623 views

wpColorPicker: How update colors on input value update?

Setup: An input field that has attached a wpColorPicker instance. An external event that changes the input value color. Issues: On value change the color shown by the colorpicker doesn't get ...
1
vote
1answer
795 views

Add transparency to wordpress color picker?

Question: How could you add a few transparency options (none, semi-transparent and solid) to the chosen color in the wp color picker? I'm working on a set of theme options. I am using the wp color ...
1
vote
0answers
14 views

Remove margin from CSS gradient color code

I'm trying to use a CSS gradient code within a container that has a border and 30px margin, but this code is filling the margin space too. I want the margin to be left out of the gradient. I tried ...
1
vote
0answers
176 views

How to refresh Theme Customizer after change color inside wpColorPicker?

I develop my custom widget with setting where I can set up custom color for the widget. I use this code to initialize wpColorPicker instead of default text input in form() method of Widget class: ...
1
vote
0answers
39 views

Adding a colorbutton in tinymce dialog with current api

I'm trying to add a colorbutton in a tinymce dialog box, which i was able to do with the help of using this stackoverflow question here: ...
1
vote
1answer
87 views

How to clear wpColorPicker (Iris.js)?

I'm trying to clear the WordPress colorpicker but seems it doesn't work. This is what I'Ve tried: $('#element').wpColorPicker('clear'); //error: Uncaught Error: no such method 'clear' for ...
1
vote
0answers
219 views

Using in-build Visual Composer param types in custom param types

I'm developing a new param type by following this guide. This new param type will contain a color picker and 3 text fields.To use VC's in-built colorpicker, made a littre research and found these ...
1
vote
0answers
164 views

use add_action('wp_head') in a widget for generating dynamic CSS styles

I have been working on a 'Custom Pop Links' widget for use in a theme which is ready for distribution. User can change the color of a link using a color picker inside widget. Untill now, I used inline ...
1
vote
0answers
103 views

color value of wpColorPicker

I have following input field which is attached with color picker <input type="text" class="color-field" id="mn_fpl_colorbackconf" rows="1" cols="25"></textarea> Also I have the ...
1
vote
0answers
226 views

Using color picker in plugin, does input attribute order matter?

I'm trying to use the WP color picker in a plugin admin menu and it doesn't seem to be doing anything at all. I'm following the directions here: ...
1
vote
0answers
377 views

Vanderlee jQuery color picker and WordPress Errors

Has anyone gotten the Vanderlee jQuery color picker to work with WordPress? I'm evaluating color pickers with alpha support for my theme and this one just refuses to work. ...
1
vote
0answers
95 views

Unset color set in Theme Customizer

I'm building a theme using the Theme Customizer and have a few options with color pickers. It seems as though once you set a color using the color picker, there's no way to clear/remove/ unset it, is ...
0
votes
2answers
528 views

How To Make Iris Color Picker Showed Up Over Form and Text?

Is there a way to make wordpress default color picker (iris) showed up over form and text using wordpress api? Its inline display messing up the administration page of my plugin each time the color ...
0
votes
1answer
13 views

How to overwrite iris color pallates from theme to plugin

I am working n plugin for iris color pick and in plugin I want to make my own color pallets and overwritten on iris color picker that use in theme. I create 6 fields in plugin where user can put ...
0
votes
1answer
214 views

Using color schemes with Color Picker

What I'm doing User interface to change website colors - User can change colors individually (like menu color, footer color, content color), or use color scheme that will change all colors (values ...
0
votes
0answers
19 views

Color picker for posts and pages

I want to add color picker to wordpress posts and pages at admin menu. I have this code for color picker: add_action( 'admin_enqueue_scripts', 'add_color_picker' ); function add_color_picker( $hook ...
0
votes
1answer
48 views

Handle logo text color from admin section

Hi as per my requirement I need to have Color Picker option for Logo Text see image For TEXT2 I need to have color picker option which can be managed from admin dashboard I tried ...
0
votes
0answers
260 views

jQuery color picker function on change

So I'm writing a Wordpress plugin that generates a live preview upon changes to a php form using ajax. Everything is working great, but one little issue with jQuery is not quite right. Normally, when ...
0
votes
1answer
478 views

Color Picker - Theme options

I've been creating a Theme off my own back just teaching myself about the in's and out's of wordpress API. Firstly this place has been of great use to me! Now for the question, recently just ...
0
votes
1answer
879 views

Using Iris Colorpicker on TinyMCE shortcodes page [duplicate]

I'm actually working on a small shortcodes plugin. On plugin main file I register TinyMCE button and link core js about button: add_filter("mce_external_plugins", "shortcodes_tinymce_plugin"); ...
0
votes
0answers
177 views

colorpicker WP 3.5 path to stylesheet when called from a child theme

What is the path to the 3.5 colorpicker stylesheet? wp_enqueue_style( 'wp-color-picker' ); I am trying to enqueue the color picker from a child theme but it does not load. I have added an admin ...
-1
votes
4answers
4k views

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( ...