Strange iframe added into body tags called `rufous-sandbox`

HtmlWordpress

Html Problem Overview


I'm working on a local WordPress site, and for some reason there is an iframe added just after the opening body tag which makes the body to drop down about 20px.

Google only returned 1 relevant result when searching for it, and what I read there didn't help much. It can be found here.

The WordPress site has no plugins installed, and setting it to display: none; doesn't work.

Here's a screenshot from Chrome so you can see it:

enter image description here

Html Solutions


Solution 1 - Html

It seems like it is added by the Twitter script. If you remove it the iframe will disappear. It sure looks like you have the Twitter plugin installed in some way or the other as you can see it says data-twttr-rendered="true" in the body tag.

If you remove the code - in my case the code below - it will disappear

<script type="text/javascript">
  (function(){
    var twitterWidgets = document.createElement('script');
    twitterWidgets.type = 'text/javascript';
    twitterWidgets.async = true;
    twitterWidgets.src = '//platform.twitter.com/widgets.js';
    document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
  })();
</script>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlex McGillView Question on Stackoverflow
Solution 1 - HtmlSøren DamView Answer on Stackoverflow