Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

wordpress not loading jquery

function include_jQuery() {
    if (!is_admin()) {
        // comment out the next two lines to load the local copy of jQuery
        wp_deregister_script('jquery'); 
        wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3'); 
        wp_enqueue_script('jquery');
    }
}
add_action('init', 'include_jQuery');
Comment

PREVIOUS NEXT
Code Example
Javascript :: two sum javascript solution 
Javascript :: copy object array javascript 
Javascript :: Page Height Bottom 
Javascript :: ifsc code validation formik 
Javascript :: js arithmetic operators 
Javascript :: how to get last string in javascript 
Javascript :: javascript define global variable 
Javascript :: js different 
Javascript :: Radom String in Javascript 
Javascript :: difference between the `.append()` method and the `.appendChild()` method 
Javascript :: javascript calculate percentage to pixel 
Javascript :: javascript get referrer 
Javascript :: js get element by index 
Javascript :: javascript 1 line if 
Javascript :: js create array from for loop 
Javascript :: discord.js how to send message 
Javascript :: how to merge 2 object array by the same key with lodash 
Javascript :: switch js 
Javascript :: array map destructuring 
Javascript :: javascript type casting int 
Javascript :: js test if array 
Javascript :: await on observable 
Javascript :: axios default baseurl conditional environment 
Javascript :: execute a function at a certain time of day js 
Javascript :: node js check type of variable 
Javascript :: downgrade nodejs with nvm 
Javascript :: javascript console log whole array 
Javascript :: react native run ios 
Javascript :: make copy of date javascript 
Javascript :: check for duplicates in array javascript 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =