smile_ajax is not defined
Hi, this is my first error in Jquery so dont go too hard on me..
im using Jquery for an animated menu i made. It works well but it breaks some of the functions in my wordpress theme and i cant figure out why.
This is my script to initiate Jquery but i dont know why it breaks other things..
- if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
- function my_jquery_enqueue() {
- wp_deregister_script('jquery');
- wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
- wp_enqueue_script('jquery');
- }
I get an error in my inspector saying "smile_ajax is not defined"
any help here would be greatly appreciated :)
-R