Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
I used below to move all javascript to footer, but cannot log in or register now. Any suggestions?
function custom_clean_head() {
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
}
add_action( ‘wp_enqueue_scripts’, ‘custom_clean_head’ );
You’re obviously not enqueuing the userpro scripts.min.js. Please correct this and make sure it’s queued.
You must be logged in to reply to this topic.