Hi this is my first post here, and my first real web project… this might be a stupid question but i have searched all over the web for an answer to this…
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…
[php]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’);
}[/php]
I get an error in my inspector saying “smile_ajax is not defined”
any help here would be greatly appreciated
-R