Support » Plugin: Social Sharing Plugin - Sassy Social Share » Why does this put scripts above the declaration?
Why does this put scripts above the declaration?
This is terrible, as it causes my doctype to be ignored.
Please change this so that all the scripts load into the head.
Scripts should not be loaded outside of the head especially not before my doctype declaration.
It’s a hack.
Have searched through the plugin. This looks like an injection as I can’t find references to it anywhere in the plugin itself.
What is going on with this???
Here’s the code
- This reply was modified 4 years, 8 months ago by asha23.
The hack starts on line 146 of class-sassy-social-share-public.php
Please fix this plugin and enqueue this inline script properly.
There is a stylesheet just plonked in there as wellPlugin Author Heateor Support
Scripts should not be loaded outside of the head especially not before my doctype declaration
Custom CSSoption) in
<head>of the webpage. It’s how your theme uses
wp_headhook that prints that script and CSS at the webpage. You can confirm this by switching to another theme for a while.Thread Starter asha23
The problem is, this puts a script above the <head> of the webpage.
It will do this, because in the plugin it just echoes out a load of code.
Plugin Author Heateor Support
- This reply was modified 4 years, 7 months ago by asha23.
Did you try switching to any default theme of WordPress? If you do, you will find that problem is with your theme.
- The topic ‘Why does this put scripts above the declaration?’ is closed to new replies.