fringer
Member
Posted 7 months ago #
Hi, YSlow reports a lot of scripts running in the head of my site, something like this:
http://*****/wp-content/plugins/wp-special-textboxes/js/wstb.js.php?ver=3.10.60
http://www.google-analytics.com/ga.js
Yet when I go through the header.php there's no mention of these scripts. Where else should I look for them?
I'm trying to put them all at the bottom.
From what you provided, wp-special-textboxes plugin is loading a js file. That plugin won't actually edit your header.php file, but instead it will call the file from somewhere within the plugin's code itself.
This page http://codex.wordpress.org/Theme_Development#JavaScript shows that http://codex.wordpress.org/Function_Reference/wp_enqueue_script is used to insert js files. You'll need a bit of coding experience, but you can remove the code from the plugin files and manually add them to your template files.
Be aware that this may cause issues however if you change templates.