Facebook fanbox problem

You can use the asynchronous XFBML javascript but you have to register an app and get an appID. Here is the function I use to add the XFBML to the footer. Note: This will work for the like button also. add_action(‘wp_footer’, ‘c3m_share_this_scripts’ ); function c3m_share_this_scripts() { echo ‘ <script>’; echo ” window.fbAsyncInit = function() {; … Read more

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