You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using CMB2 fields on widgets area using this snippet taken from CMB2 library
I know that fields on widget area aren't built-in supported, but this issue could be easily fixed by simply adding a control initialization on widgets area replacing this lines by the following code:
// Auto Call plugin is class is color-picker
jQuery( document ).ready( function( $ ) {
$( '.color-picker' ).wpColorPicker();
// Initialize on widgets area
$(document).on('widget-updated widget-added', function(e, widget) {
widget.find( '.color-picker, .cmb2-colorpicker' ).wpColorPicker();
});
} );
If this fix isn't get released, those lines could be useful as a reminder when CMB2 fields on widgets area gets supported at any time
The text was updated successfully, but these errors were encountered:
I'm using CMB2 fields on widgets area using this snippet taken from CMB2 library
I know that fields on widget area aren't built-in supported, but this issue could be easily fixed by simply adding a control initialization on widgets area replacing this lines by the following code:
If this fix isn't get released, those lines could be useful as a reminder when CMB2 fields on widgets area gets supported at any time
The text was updated successfully, but these errors were encountered: