Questions tagged [color-picker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Trying to customise 2011 Child Theme Background Colour

I am trying to customise the background colour of my site. It's a 2011 Child Theme. When I go to Appearance -> Customize -> Colors, I get the Light and Dark option under Color Scheme, but can't ...
0
votes
1answer
16 views

How to add more default colors?

I just reinstalled my website with the same theme and now the other default colors are gone. Only black is left. Is there a way to add more default colors?
0
votes
0answers
7 views

Alpha Color Picker, moving title at beginning of picker

I am using alpha color picker (with transaprency) by Braad Martin's. See Source Here Initially, it doesn't show the title and description. Its shown as below When I click the button it shows the ...
2
votes
0answers
26 views

How to store Gutenberg ColourPicker RGBA as metadata

I'm trying to build a sidebar plugin for Gutenberg which uses the ColorPicker component to store a chosen rgba value in metadata using withSelect and withDispatch (I'm testing below with the hex value)...
0
votes
0answers
22 views

How do I update the wpColorPicker palette after initialization?

Once the customizer color picker is initialized, how can the color palette be updated? The palette can be set through the js options before it's initialized using something like: jQuery.wp....
0
votes
1answer
23 views

Looping inside block return

I have a custom block that allows me to choose a color. This is how the block's return function looks: return ( el( 'div', { }, ...
2
votes
2answers
30 views

Change default colors in paragraph block settings

I need to have the client's theme colors here so he doesn't have to remember the color codes each time he's using them. Is is there any way to Add/Remove/Change some colors from the default "...
0
votes
0answers
64 views

ACF color picker in wp menu items

I want dynamically change color for wp menu item <a>. I use ACF color picker, but i can't get acf color picker value in my code. var_dump is NULL function add_menuclass($ulclass) { $color = ...
0
votes
1answer
54 views

Wordpress colorpicker save both hex and RGB

Trying to get both the hex and RGB value of a color from the native color picker in Wordpress, user chooses the color via a custom metabox in the admin. Just need to save both values as meta for re-...
0
votes
0answers
27 views

Change Text font color in swift framework, in coundown or counters shortcode

my background is black, the shortcode gives the option to change the title color, but the numbers still stay black. That results with black font on black background. I'm using Dante template, here is ...
0
votes
1answer
58 views

Are there any CSS classes for the wordpress colours?

Are there any CSS classes for the wordpress colours: https://make.wordpress.org/design/handbook/design-guide/foundations/colors/ For instance, classes like these from the Twenty Seventeen Theme: ....
0
votes
1answer
66 views

Can't get wpColorPicker to work in a widget

I can show the color picker, I can change the color and see the save button watching that, however nothing is saved to DB and I'm getting Undefined index: my_color", file: "wp-content/plugins/...
2
votes
1answer
1k views

How do I change Twenty Nineteen's primary color without using the color slider in the theme customizer?

Just installed the new 2019 theme. The customizer offers "default" and "custom" color options. When you select "custom", it shows a slider to pick the color, not the normal color-picker. ...
-2
votes
2answers
25 views

How to change first letter of active menu item

Hello can anyone please give me the code, and tell me where to put it, for how to the change the first letter or the active menu item to red? thank you
0
votes
2answers
778 views

Custom color for each category name

I have tested several plugins and none is perfect solution. I would like to have simple solution so user can select the color for the Category name which will be the actual color of the text/link like ...
0
votes
0answers
126 views

How to place a color picker field into my plugin admin tab

I'm creating a plugin that has a few tabs for better organisation. I'm trying to place a color picker on the plugin settings page under a tab I've called checkout. I've tried following the ...
0
votes
1answer
27 views

Integrating colorpicker into array field

I am using this code and i am trying to show a colorpicker onto an array field. Any ideas, how to do it? <?php class Smashing_Fields_Plugin { public function __construct() { // Hook ...
4
votes
2answers
2k views

How to implement color picker from wordpress in my plugin?

I'm having difficulty implementing the color picker exactly the same as WordPress in my plugin. Is there any official wordpress documentation on how to use this feature?
0
votes
1answer
2k views

How to add color picker in theme options

I'm new to WordPress I want to add simple color picker in theme options.I tried but not getting can anyone suggest me?
0
votes
0answers
318 views

Dashboard widget, screen options/help doesn't work?

I have managed to break something with my Wordpress Multisite install. I have tried deactivating every plugin and activating again. Right now I cannot click the Screen Options or Help in the dashboard ...
1
vote
2answers
501 views

Custom color does not stick

I use a custom color for certain words on my web site. Every time want to use that color I need to click the Text Color icon and Customize... I then type in the RGB. Problem: It doesn't save that ...
0
votes
0answers
168 views

Color picker in widget appears twice when added via the Customizer

I've used this https://core.trac.wordpress.org/attachment/ticket/25809/color-picker-widget.php as a reference to add a color picker to custom widget. Everything works great when this widget is added ...
1
vote
2answers
61 views

How I can get custom field's current value?

I have "Color Filters for WooCommerce" plugin and "color" taxonomy. Each taxonomy have one custom field - color picker. I want to display on archive page current color picker value of each product's....
0
votes
2answers
762 views

Using WP Color Picker in Repeatable Fields

I wrote a repeater script that clones the last field group before it. My issue is that cloned WP Color Picker fields don't open the new color spectrum when clicked on but instead opens the color ...
0
votes
2answers
39 views

Need to over ride a !important from the index file

Something really weird happened. I want to change the color of this text but the index file has an !important there and when i change the color on my style.css file it doesn't work. What can i do to ...
7
votes
2answers
12k views

How do you add custom color swatches to all WYSIWYG editors?

I would like to be able add the same custom colours to the swatches at bottom of colour picker panels that appear in the WYSIWYG editors across the site, to make it easier for clients to keep ...
1
vote
1answer
4k 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
80 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 ...
3
votes
0answers
346 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 ...
5
votes
1answer
684 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 I edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does not ...
1
vote
0answers
163 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 ...
2
votes
1answer
250 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 ...
5
votes
1answer
2k 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: ...
3
votes
1answer
407 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 color-...
1
vote
0answers
168 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: https://stackoverflow.com/questions/23511566/adding-a-...
1
vote
1answer
799 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 ...
2
votes
1answer
524 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 ...
1
vote
0answers
876 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 ...
3
votes
1answer
620 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
530 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 ...
0
votes
1answer
57 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 searching ...
-1
votes
1answer
1k 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 ...
3
votes
2answers
7k 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 ...
0
votes
1answer
1k 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 ...
1
vote
0answers
802 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: http://make.wordpress.org/core/2012/11/30/new-color-...
1
vote
1answer
2k 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 ...
2
votes
1answer
5k 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 ...
0
votes
1answer
1k 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"); ...
2
votes
3answers
5k 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 ...
1
vote
0answers
572 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. https://github.com/vanderlee/...