The instruction was to post the script before </body>
but i really cant find </body> in my body tag. I am using oceanwp theme. thank you
]]><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=[Your Profile ID]" async="async"></script>
I’m not sure how to add this to the Async plugin settings. Would that be
s7.addthis.com/js/300/addthis_widget.js#pubid=[Your Profile ID]
(of course with my own profile ID).
Thanks for helping out!
]]>https://www.ads-software.com/plugins/w3-total-cache/
]]>add_action('wp_head','my_equalHeight',1,20);
function my_equalHeight() {
?>
(<script src="equalHeight.min.js"></script>)
<?php
}
Thank you and compliments for a very versatile theme, Massimo
]]>There is a simple javascript called magicimage (https://www.echochrist.com/magicimage.php).
I know how this code gets embedded into an html page because there is an example .html file and here is its content:
<html>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">
<script
language="JavaScript"
src="magicimage.js"
type="text/javascript">
</script>
</HEAD>
<BODY>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div id="MagicImage"></div></td>
</tr>
</table>
</div>
<p>?</p>
</body>
</html>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin]
But can someone tell me how and where do I add this code to a wordpress page to make the script work?
Thanks
]]>Hello!
There is a simple javascript called magicimage (https://www.echochrist.com/magicimage.php).
I know how this code gets embedded into an html page because there is an example .html file and here is its content:
<html>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">
<script
language="JavaScript"
src="magicimage.js"
type="text/javascript">
</script>
</HEAD>
<BODY>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div id="MagicImage"></div></td>
</tr>
</table>
</div>
<p>?</p>
</body>
</html>
But can someone tell me how and where do I add this code to a wordpress page to make the script work?
Thanks
]]>I am trying to add a few “dynamic html” addons to my site that require a script to be placed in the <head> of my page. Thing is, when I add the script to my header.php file, it places the script on every page which isn’t necessary.
Is there anyway to mark what pages I want scripts to appear on?
I’m pretty new to working with WordPress. Sorry.
https://windowdepotva.com/site
]]>