Title: Color picker causing errors
Last modified: July 16, 2020

---

# Color picker causing errors

 *  Resolved [Aheleos](https://wordpress.org/support/users/aheleos/)
 * (@aheleos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/color-picker-causing-errors/)
 * Other themes don’t have the issue it’s only happening with di restaurant and 
   it’s child themes( I am using food business ). Something happened when I was 
   using the color picker, in elementor, and it wouldn’t close. I reloaded the page
   and it all seemed fine, but now when I go to the customizer section I get a javascript
   error. The error goes away when I change to a different work press theme, but
   somes back when I go to elementor. I see the file causing issues is in the /di-
   restaurant/inc/kirki/kirki/assets/vendor/wp-color-picker-alpha directory. I am
   trying to troubleshoot this tonight, but any help qould be appreciated. I’m afraid
   any fix I implement will be overwritten when your theme updates.
 *     ```
       wp-color-picker-alpha.js?ver=3.0.39:112 Uncaught ReferenceError: wpColorPickerL10n is not defined
           at h.<computed>.<computed>._create (wp-color-picker-alpha.js?ver=3.0.39:112)
           at h.<computed>.<computed>.h.isFunction.a.<computed> [as _create] (widget.min.js?ver=1.11.4:11)
           at h.<computed>.<computed>._createWidget (widget.min.js?ver=1.11.4:11)
           at new h.<computed>.<computed> (widget.min.js?ver=1.11.4:11)
           at HTMLInputElement.<anonymous> (widget.min.js?ver=1.11.4:11)
           at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery&ver=5.5-beta2-48491:2)
           at n.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery&ver=5.5-beta2-48491:2)
           at n.fn.init.h.fn.<computed> [as wpColorPicker] (widget.min.js?ver=1.11.4:11)
           at i.ready (customize-controls.min.js?ver=5.5-beta2-48491:2)
           at Object.<anonymous> (customize-controls.min.js?ver=5.5-beta2-48491:2)
       ```
   
 * Replacing the kirki toolkit with the latest dev branch on github ([https://github.com/kirki-framework/kirki](https://github.com/kirki-framework/kirki))
   solves the initial issue although I expect that would be overwritten with the
   next di restaurant theme update. I also haven’t looked deep enough yet to see
   if it causes any other compatibility issues with the themes expectations of the
   older version.
    -  This topic was modified 5 years, 10 months ago by [Aheleos](https://wordpress.org/support/users/aheleos/).
    -  This topic was modified 5 years, 10 months ago by [Aheleos](https://wordpress.org/support/users/aheleos/).
      Reason: followup information
    -  This topic was modified 5 years, 10 months ago by [Aheleos](https://wordpress.org/support/users/aheleos/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [Di Themes](https://wordpress.org/support/users/dithemes/)
 * (@dithemes)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/color-picker-causing-errors/#post-13129872)
 * Hi
 * Okay we will bundle latest version of Kirki framework in theme. you can install
   and activate kirki plugin for now: [https://wordpress.org/plugins/kirki/](https://wordpress.org/plugins/kirki/)
 * Thanks
 *  Thread Starter [Aheleos](https://wordpress.org/support/users/aheleos/)
 * (@aheleos)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/color-picker-causing-errors/#post-13132556)
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Color picker causing errors’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/di-restaurant/1.8/screenshot.png)
 * Di Restaurant
 * [Support Threads](https://wordpress.org/support/theme/di-restaurant/)
 * [Active Topics](https://wordpress.org/support/theme/di-restaurant/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/di-restaurant/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/di-restaurant/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aheleos](https://wordpress.org/support/users/aheleos/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/color-picker-causing-errors/#post-13132556)
 * Status: resolved