Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

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:

image

1 Answer

0 votes
by (106k points)
edited by

To get rid of the error strange iframe added into body tags called. It looks like it is added by the twitter script. If you remove it the iframe it will disappear, surely it 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.

Are you interested in learning Angularjs from scratch! Have a look at this interesting video on Angularjs provided by Intellipaat:

You can use the following code, it will help:-

<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>

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 6, 2020 in Web Technology by dev_sk2311 (45k points)

Browse Categories

...