Adding tables above and makes AMP invalid
-
I got 12 AMP errors in my Console and on further investigation, I noticed WP App Box is adding following script at the beginning of the page. BEFORE STARTING THE <HEAD> TAG
This is the script
<script type=”text/javascript”>var wpappbox_combined_button = {“names”:[“Amazon Apps”,”(Mac) App Store”,”Chrome Web Store”,”Firefox Add-ons”,”GOG.com”,”Google Play Apps”,”Opera Add-ons”,”Steam”,”Windows Store”,”WordPress Plugins”,”XDA Labs”],”ids”:[“amazonapps”,”appstore”,”chromewebstore”,”firefoxaddon”,”goodoldgames”,”googleplay”,”operaaddons”,”steam”,”windowsstore”,”wordpress”,”xda”]};</script>
I found this problem only on few pages of my website and in rest of the pages this same script was added below <title> tag and works fine.
Here is the screenshot
https://www.dropbox.com/s/w4y3znj0cxm8iq3/view-source%3Ahttps%3A%3A%3Awww.geekdashboard.com%3Abest-ocr.png?dl=0Note: I manually removed the code inside wp-appbox.php file (lines 826 and 867) to fix the problem temporarily. Still, pages loads fine without this script. Can I know what does this script do and why only few pages are affected?
The page I need help with: [log in to see the link]
- The topic ‘Adding tables above and makes AMP invalid’ is closed to new replies.