How can I put this JavaScript into WordPress? [closed]
you could filter it onto the end of the_content? function kia_add_registry_button($content){ ?> $content .= “<!– Start AddToMyRegistry Button Tag –> <script id=’scriptMyRegistryWebWidgetButtonScript’ type=”text/javascript”> document.write(“<img id=’ImgAddToMyRegistryButton’ src=”http://images.myregistry.com/Images/MyRegistry/WebWidgetImages/netSol/742.jpeg” onmouseover=”ImgAddToMyRegistryButton_onmouseover(this);” onmouseout=”ImgAddToMyRegistryButton_onmouseout(this);” style=”border-width: 0px; cursor: pointer;” onclick=’CreateAddToMyRegistryWidget();’ />”); function ImgAddToMyRegistryButton_onmouseover(elementParam) {elementParam.src=”http://images.myregistry.com/Images/MyRegistry/WebWidgetImages/netSol/742.jpeg”;} function ImgAddToMyRegistryButton_onmouseout(elementParam) {elementParam.src=”http://images.myregistry.com/Images/MyRegistry/WebWidgetImages/netSol/742.jpeg”;} </script> <!– End AddToMyRegistry Button Tag –>”; return $content; <?php } add_filter(‘the_content’,’kia_add_registry_button’); having just worked … Read more