Add jQuery to wordpress header
-
I am converting an old website over to wordpress. It was developed by another person and they had custom jQuery script in the header.
When I copy it over as is, into the wordpress header, it doesn’t work. I”m wondering if someone is able to assist.
This was the script in the old website, if you are able to advise where I put this and do i need to change it to suit WP format?
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="/scripts/main.js"></script> <link href="/styles/subpage.css" rel="stylesheet" type="text/css"/> <script language="javascript" src="../scripts/jquery.js"></script> <script language="javascript" src="../scripts/jquery.url.js"></script> <script language="javascript" src="../scripts/pngfix.js"></script> <script> jQuery(document).ready(function(){ //setTimeout(function(){jQuery("#bluey").fadeIn(); },2500); jQuery(".box").each(function(){ jQuery(this).focus(function(){ if(jQuery(this).attr('value') == "Username" || jQuery(this).attr('value') == "ID"){ jQuery(this).attr('value',''); } }); }); jQuery("#access").submit(function(){ jQuery("#hole").html('').load("login.php",{ 'accesskey':jQuery("#accesskey").val() }); jQuery("#accesskey").attr('value',''); return false; }); jQuery("#update_overlay").click(function(){ jQuery("#update_overlay").fadeOut(); jQuery("#update_load").fadeOut().html(''); jQuery("#update_img").fadeOut().html('') }); jQuery("#update_overlay").height($("body").height()); jQuery("#update_overlay").width($("body").width()); }); function hide_update(){ jQuery("#update_img").fadeOut().html(''); } </script> <!--[if IE 6]> <script language="javascript" src="/scripts/pngfix2.js"></script> <script> DD_belatedPNG.fix('*'); </script> <![endif]--> </head>
please use code buttons
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add jQuery to wordpress header’ is closed to new replies.