Vasanthan.R.P
Vasanthan.R.P

Reputation: 1287

Remove an empty script in wordpress header

My WordPress version is 3.2.1.

An empty script is placed inside the head tags:

<script type='text/javascript' src='Actual theme path?ver=3.2.1'></script>

I deactivated all my plugins and checked it. But it looks that same. Then I looked into my functions.php. I can see the following scripts:

wp_enqueue_script('nivo', BFI_TEMPLATEURL . 'scripts/jquery.nivo.slider.js', array('jquery'),'3.2.1');
wp_enqueue_script('bfi', BFI_TEMPLATEURL . 'scripts/bfi.min.js', array('jquery', 'superfish', 'cufonfont', 'ytchromeless', 'flowplayer', 'ajaxupload', 'nivo'), '1.0.14');

The empty script that I mentioned comes between these two scripts but I couldn't find it in functions.php.

Upvotes: 0

Views: 1293

Answers (2)

Ruslan Polutsygan
Ruslan Polutsygan

Reputation: 4461

Is jquery.nivo.slider.js-file included? I'm asking because '3.2.1'-version of this script required and in the 'empty script tag' version equals to '3.2.1' too Actual theme path?ver=3.2.1. If you answered 'no' to the previus question,
Is jQuery library script included? It could be the reason because according to this

wp_enqueue_script('nivo', BFI_TEMPLATEURL . 'scripts/jquery.nivo.slider.js', array('jquery'),'3.2.1');

nivo slider script depends on jquery script.

Also, Have you opened header.php-file of your theme? Maybe you have this string hardcoded in this file. It is improbable, but may be...

Upvotes: 1

Phil
Phil

Reputation: 11175

Deactivated or deleted? Because if you deactivate the plugin, the script files are still in the root js directory of wordpress.

Upvotes: 0

Related Questions