I just want to ask on how to print script ‘javascript’ at the footer using simple plugin. I’m using WordPress 3.0 any ideas?
Leave a Reply
You must be logged in to post a comment.
I just want to ask on how to print script ‘javascript’ at the footer using simple plugin. I’m using WordPress 3.0 any ideas?
You must be logged in to post a comment.
Use a functions.php file inside your theme template add this :
For an external javascript file to be linked in the footer, use this (>= WP2.8)
That last true means that the script should be put at the wp_footer() hook.
Hum may be it’s too late to answer, but if anyone else comes here with the same problem :
There is a plugin to do this :
http://wordpress.org/extend/plugins/footer-javascript/
Or you can doing this manually by adding this short code in your functions.php :
Use a functions.php file inside your theme (or child theme if exists) template add this:
Simply
http://your-domain.com/wp-content/uploads/2021/11/index.js
or different depending on the site settings you have.<script src="/wp-content/uploads/2021/11/index.js"></script>
. Do not include the http://your-domain.com.And there you have it.