Forgive me for knowing next to nothing about coding. BUT, I am calling jQuery in functions.php, which I have been told is the best way to include jQuery:
//Get jQuery
function modify_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', 'modify_jquery');
I am now trying to add a jQuey function from PaperMashup.com which looks like this.
I was under the impression if I simply copy and pasted the above jQuery function into the following code it would work, but it does not. How do i incorporate this function?
jQuery(function ($) {
/* PASTE CODE HERE */
});