Skip to:
Content
Pages
Categories
Search
Top
Bottom

Persistent wp_enqueue_script – jQuery

  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Hi gang,

    I’m using the current jQuery library in my header and am thus trying to get rid of the default jQuery 1.2.6 library being used in BP.

    I have commented out the following line from the bp_core_add_js() function in bp-core-cssjs.php (yeah I know editing core file = bad, but anyway!):

    wp_enqueue_script( 'jquery' );

    However, I still see jQuery 1.2.6 being listed in my HTML source.

    Does anyone else get the same problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of 12thharmonic
    12thharmonic
    Participant

    @12thharmonic

    I’ve been having a problem with this for months. Killing many ajax functions on my site. Menus are impacted in a very bad way. I am pulling my hair out looking for a resolution.

    http://headonradionetwork.com

    Firebug shows three errors.

    $ is not a function

    [Break on this error] $(function() {

    headonra…twork.com (line 1290)

    $ is not a function

    [Break on this error] $(document).ready(function(){

    headonra…twork.com (line 1271)

    jQuery(“div#members-list-options a”).livequery is not a function

    [Break on this error] function() {

    There are a number of threads discussing similar issues. jquery version clashes. None have been of any help aside from confirming I’m not alone.

    Avatar of 12thharmonic
    12thharmonic
    Participant

    @12thharmonic

    Thaks Mate! I will be having a go at it shortly.

    Avatar of mydesignbytes
    mydesignbytes
    Participant

    @mydesignbytes

    Simple just add to your functions.php in your main theme:

    add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

    function my_deregister_javascript() {
    wp_deregister_script( 'jquery' );
    }

    No more jquery!

    Avatar of Brent Allison
    Brent Allison
    Participant

    @brentallison

    Thanks @mydesignbytes. Just what I was looking for!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.