admin管理员组文章数量:1415460
This is a WordPress core question and only a CSS question as a byproduct.
I am designing a theme using bootstrap. Everything looks exactly as I want it to with one exception - links embedded from my test blog.
According to bootstrap, there are utility classes for ensuring responsive iframes. However, this is markup from deep within the depths of WordPress and the block system.
It comes from the_content();
like this:
<p><iframe ...></iframe></p>
The result looking like this - notice how the oembed has overflowed the right-hand side:
Is there a way to class those p tags (and only those p tags as embed-responsive embed-responsive-16by9
or similar or is there some other way to make the errant iframe get back inside where it belongs?
For example, is there something I can hook to alter the output of the_content()
and specifically investigate which type of block each one is?
本文标签: theme developmentHow do I keep my iframes responsive and scaled to fit their container
版权声明:本文标题:theme development - How do I keep my iframes responsive and scaled to fit their container? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745159077a2645352.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论