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 into the sidebar in Appearance -> Widgets, but when i add the widget via the Customizer, the color picker appear twice when the first instance does not response to click, only the second is clickable and works as it should.

After page is refreshed or after the Customizer is saved, the first non clickable color picker disappears and i can see only one, working color picker.

All suggested fixes have no affect on widget in Customizer.

See two images of two widget's situations:

Widget Added:

Widget Added

Widget Updated:

Widget Updated


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.