wp_deregister_script
-
Hello,
I’m trying to deregister/enqueue 2 js files: jquesry and buddypress global.js
The goal is to put them in footer. I use this code:wp_deregister_script( 'jquery' ); wp_enqueue_script( 'jquery','https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',false, '1.4.2',true ); wp_deregister_script( 'dtheme-ajax-js' ); wp_enqueue_script( 'dtheme-ajax-js',get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ),'',true );
The result is– I can see they are loaded in footer, and my blog is working if not use js. When I tried to log in, the error message says-
“Warning: Cannot modify header information – headers already sent by (output started at …./wp-content/plugins/bp-custom.php:1) in …./wp-login.php on line 337
Need help!
Regards
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_deregister_script’ is closed to new replies.