Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript I Have A JQuery Issue, Need Help!

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #36726
    MartyBoi
    Participant

    Hello, how are you doing?

    I am using WordPress 3.1.1, and am having an issue getting JQuery to Fire Off, it ain’t working in my theme.

    This is what I have:


    // Load jQuery
    if ( !function_exists(core_mods) ) {
    function core_mods() {
    if ( !is_admin() ) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"), false);
    wp_enqueue_script('jquery');
    }
    }
    core_mods();
    }

    This is the Scripts:







    This is what I am trying to Fire Off:

    // remap jQuery to $
    (function($){})(window.jQuery);


    /* trigger when page is ready */

    $(document).ready(function (){

    alert('test');

    });

    Can anyone help me?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.