If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I have embedded a google document and it’s width and height is being overridden by some code in the template. I tested to see if it’s the template by deactivating all plugins and then re-enabling just the Google Embed plugin and the issue persists. I contacted the plugin support and this was their response:
The Drive plugin translates your embed code into this HTML:
<iframe width=”100%” scrolling=”no” height=”700″ frameborder=”0″ src=”https://docs.google.com/a/orangenjsda.org/document/d/1oHzgZxLJV3FLZsSyoxMbJUX-OtTq_3MqtFIk1OrkBQ8/preview”>
but something on your site is turning it into:
<iframe width=”100%” scrolling=”no” height=”700″ frameborder=”0″ src=”https://docs.google.com/a/orangenjsda.org/document/d/1oHzgZxLJV3FLZsSyoxMbJUX-OtTq_3MqtFIk1OrkBQ8/preview” style=”width: 205px; height: 168.863px;”>
(note the extra width/height in style, which is overwriting the other width/height)
Please advise of what could be causing this issue and how it can be resolved. Thank you.
The topic ‘iFrame/Embed size overriden’ is closed to new replies.