WordPress.org

Ready to get started?Download WordPress

Forums

iframe
[iframe] omit width/height if parameters not passed? (2 posts)

  1. jeffkee
    Member
    Posted 1 year ago #

    Mobile grid usage (skeleton CSS etc.) is increasing quite a bit, and my iframe height/width is determined by a css class. The width/height of iframes under the content div is set to a certain dimension, so I need an iFrame tag that does NOT include width or height, but just a class attribute. Currently this doesn't appear to be supported. When I do not specify it, it defaults to 100% width and 480 px height.

    Essentially I need this:

    <iframe src="http://...." class="scale-with-grid"></iframe>

    No width/height should even be part of the tag. Is there a way to do this?

    http://wordpress.org/extend/plugins/iframe/

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    You may just edit your copy of Iframe plugin and remove width and height from defaults.

    Also change version of the plugin to "100" for avoiding plugin updates and losing your code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.