Hello,
If you want to remove the password strength meter then you can remove that.
You can use these following codes to disable the meter-
function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );
Just you have to paste those codes into your theme’s (child theme is safe to customize) function.php file.
Hi, thank you for the response,
I placed that code at the very bottom of my functions.php file, however it does not seem to change anything. Any clues as to what is going on?
Thanks
I have checked the code again and it is removing the strength meter from the registration page correctly. Did you paste those codes in your child theme’s function.php file?
It appears I have put the code in the wrong place. However, after putting it in the theme’s functions.php file, I get an error 500 and cannot load the page anymore.
Ah, I think I had placed it in the parent theme not the child theme. I will see what happens once I get the server error code to fix and input it in the child theme.
Where should I be pasting these codes?
I have this in my functions.php file for my child theme:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
?>
Where exactly would I insert the following codes that you provided?
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );