Chi ha creato la discussione
august1890
(@august1890)
Ciao!
Grazie per la risposta.
Quando un user si registra sul sito , entra la password. ma quando fa il login, wordpress dirige l’user verso una pagina per reimpostare la password con una strong…. Vorrei che l’user si collegasse direttamente nel suo account sul sito senza passare da wordpress.
Ecco il codice che uso ma non funziona:
add_action(‘login_enqueue_scripts’, function(){
wp_dequeue_script(‘user-profile’);
wp_dequeue_script(‘password-strength-meter’);
wp_deregister_script(‘user-profile’);
$suffix = SCRIPT_DEBUG ? ” : ‘.min’;
wp_enqueue_script( ‘user-profile’, “/wp-admin/js/user-profile$suffix.js”, array( ‘jquery’, ‘wp-util’ ), false, 1 );
});
function gomahamaya_reduce_woocommerce_min_strength_requirement( $strength ) {
return 2;
}
add_filter( ‘woocommerce_min_password_strength’, ‘gomahamaya_reduce_woocommerce_min_strength_requirement’ );
salve aggiornardo anche io alla 4.7 .. ho schermata bianca nell’amministrazione
attivando il debug mi restituisce questa serie di errori:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-includes/functions.php on line 4138 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-includes/functions.php on line 4138 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-includes/functions.php on line 4138 Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-includes/functions.php on line 4138 Notice: Trying to get property of non-object in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-content/themes/room09_new/core/yit/CPT_Unlimited.php on line 1438 Notice: Trying to get property of non-object in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-content/themes/room09_new/core/yit/Font.php on line 65 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7680 bytes) in /web/htdocs/www.collezioneicuccioli.it/home/cuccioli/wp-admin/includes/class-wp-site-icon.php on line 119
oltre al tema eventualmente posso aggiornare .. cosa posso fare per risolvere???
grazie mille
qui dicono di usare:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" integrity="sha384-2hfp1SzUoho7/TsGGGDaFdsuuDL0LX2hnUp6VkX3CUQ2K4K+xjboZdsXyp4oUHZj" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/js/bootstrap.min.js" integrity="sha384-VjEeINv9OSwtWFLAtmc4JCtEJXXBub00gtSnszmspDLCtC0I4z4nqz7rEFbIZLLU" crossorigin="anonymous"></script>
il mio codice è cosi:
/* Include Styles and script
/* ------------------------------------ */
if ( ! function_exists( 'sito_style_and_scripts' ) ) {
function sito_style_and_scripts() {
// inizio bootstrap
wp_enqueue_style('bootstrap-main', get_template_directory_uri(). '/bootstrap/css/bootstrap.min.css');
wp_enqueue_style('bootstrap-theme', get_template_directory_uri(). '/bootstrap/css/bootstrap-theme.min.css');
// inzio codice jquery
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', includes_url('/js/jquery/jquery.js'), array(), false, true);
wp_enqueue_script('jquery');
wp_register_script( 'bootstrap-script', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array( 'jquery' ),false, true );
wp_enqueue_script('bootstrap-script');
}
// fine codice jquery
// inizio stili personali
wp_enqueue_style('sito', get_template_directory_uri().'/style.css');
wp_enqueue_style('sito-master', get_template_directory_uri().'/css/master.css');
wp_enqueue_style('sito-f', get_template_directory_uri().'/css/f.css');
wp_enqueue_style('sito-pages', get_template_directory_uri().'/css/pages.css');
wp_enqueue_style('sito-mobile', get_template_directory_uri().'/css/mobile.css');
wp_enqueue_style('sito-wordpress', get_template_directory_uri().'/css/wordpress.css');
// fine stili personali
}
}
add_action( 'wp_enqueue_scripts', 'sito_style_and_scripts' );
come includo le cdn per ora ho sempre usato i file locali.. per inserire i file online come devo fare?
grazie mille e buona notte e ci sentiamo domani.