Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

html

wordpress

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

like image 786
Alex McGill Avatar asked Aug 26 '12 20:08

Alex McGill


1 Answers

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> 
like image 127
Søren Dam Avatar answered Oct 05 '22 12:10

Søren Dam