iframe height and width being removed by wordpress?
-
I’m on 3.9.1 now, but the same problem is occurring in 3.8.X.
If I use the shortcode [bandcamp] to embed i get the following rendered on the post:
<p>Holy, Holy, Holy
<iframe width=”” height=”” frameborder=”0″ allowtransparency=”true” style=”position:relative;display:block;width:px;height:px;” src=”http://bandcamp.com/EmbeddedPlayer/v=2/album=3563716376/size=small/bgcol=ffffff/linkcol=0687f5/”></iframe></p>NOTICE: the width and height don’t have any values????
IF, however, I paste in the <iframe> code in the text editor instead of visual editor… the height and width is correct!:
<iframe style=”border: 0; width: 100%; height: 42px;” src=”http://bandcamp.com/EmbeddedPlayer/album=3563716376/size=small/bgcol=ffffff/linkcol=0687f5/track=3071271614/transparent=true/” seamless>Together for the Gospel Live II by Sovereign Grace Music – Bob Kauflin</iframe>AND!!! If after using the text editor (which works with the iframe code above) I then switch to the visual editor… IT REMOVES THE WIDTH/HEIGHT STYLES!!!!!
This is happening on default themes… 2012, 2013, 2014 too!!!
WHAT GIVES?????
SOOOO weird.
The topic ‘iframe height and width being removed by wordpress?’ is closed to new replies.