Home Forums Total MANY JS console errors in customizer

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28574
    stevenoone
    Participant

    common.min.js?ver=5.5.3:2 wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

    Is there a fix for this?

    I tried adding this to functions, but it didn’t fix the issue.

    if( is_admin() ){
    add_action( ‘wp_default_scripts’, ‘wp_default_custom_scripts’ );
    function wp_default_custom_scripts( $scripts ){
    //$scripts->add( ‘wp-color-picker’, “/wp-admin/js/color-picker$suffix.js”, array( ‘iris’ ), false, 1 );
    did_action( ‘init’ ) && $scripts->localize(
    ‘wp-color-picker’,
    ‘wpColorPickerL10n’,
    array(
    ‘clear’ => __( ‘Clear’ ),
    ‘clearAriaLabel’ => __( ‘Clear color’ ),
    ‘defaultString’ => __( ‘Default’ ),
    ‘defaultAriaLabel’ => __( ‘Select default color’ ),
    ‘pick’ => __( ‘Select Color’ ),
    ‘defaultLabel’ => __( ‘Color value’ ),
    )
    );
    }
    }

    #28575
    Hash
    Keymaster

    Can you please show me your website?

    #28582
    stevenoone
    Participant
    #28583
    stevenoone
    Participant
    This reply has been marked as private.
    #28585
    stevenoone
    Participant
    #28606
    Hash
    Keymaster

    Hi,

    I just checked your website and found that you are using an older version of the theme. This issue has been fixed in our latest updates. So please update the theme to latest version. Please check this article of how to update the theme https://hashthemes.com/articles/adding-license-key-and-updating-a-premium-theme/

    Thanks

    #28607
    Hash
    Keymaster

    Please do let us know if the problem is still not fixed after the update. We will see and fix it in that case. The Plugin can also cause such issue.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.