wp_deregister_script (5 posts)

  1. imjscn
    Posted 5 years ago #

    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','http://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!

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    Suggest asking this at BuddyPress forums - http://buddypress.org/support/topics/

  3. imjscn
    Posted 5 years ago #

    BuddyPress support forum is very dead recently. I posted nearly 20 different questions, got no answer. I checked other people's post, mostly get no answer too.
    There could be some reasons. My first guess is-- there are some big change undergoing in v1.3, so, people are waiting and don't bother about old version. My 2nd guess is-- moderators are busy on their own business.

    Anyway, I saw Andra's post last week. She has been mostly in WP forum instead of BP forum for a while. Now she might bring back some life there, hope so.

  4. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    BuddyPress support forum is very dead recently

    It's sluggish especially on weekends, not dead. Posting there was a suggestion, you're free to do whatever you want :-)

  5. imjscn
    Posted 5 years ago #

    Thanks mercime! You've been very supportive in BP forum. I learned a lot from your conversion with others.
    Maybe it's just my feeling, that's true, I work on blog normally in Asia morning during weekends. That's the north American's evening. Maybe that's why I feel it's dead.

Topic Closed

This topic has been closed to new replies.

About this Topic