Multicolor Field – Custom Labels Missing
-
Labels on Multicolor field is showing the default value now instead of the Label added in choices.
It used to show labels I have given in the choices array.
You have added “__ = wp.i18n.__;” in the latest version of the wp-color-picker-alpha.js file but ‘wp-i18n’ as the dependency has not been added in the class-kirki-control-base.php file where you enqueue ‘wp-color-picker-alpha’
which is why it now shows an error.
wp-color-picker-alpha.js?ver=3.1.3:21 Uncaught TypeError: Cannot read property ‘__’ of undefined
If I add the ‘wp-i18n’ dependency in array then the error message goes away and the correct labels are showing in Customizer MultiColor field.
Can you please add the dependency and send an update to the plugin.
I had created an issue on your Github but got no reply so adding it here
https://github.com/kirki-framework/kirki/issues/2338Regards
Tajim
- The topic ‘Multicolor Field – Custom Labels Missing’ is closed to new replies.