WordPress.org

Ready to get started?Download WordPress

Forums

Advanced iFrame
[resolved] iframe too low down due to br tags being injected (3 posts)

  1. nolimit966
    Member
    Posted 10 months ago #

    Hi there,
    I am currently using Advanced Iframe on my site & it works really well, i do have 1 small issue.
    WThe iframe seems to be creating 2 x BR tags meaning my content is pushed down lower than it should be on the page.
    on Inspect element source of my age i am getting the following code:

    <p><script type="text/javascript" src="http://REMOVEDURL/wp-content/plugins/advanced-iframe/js/ai.js"></script><br>
    <script type="text/javascript">function aiResizeIframeHeight(height) { aiResizeIframeHeightById("advanced_iframe",height); }</script><br>
    <script type="text/javascript">function aiResizeIframeHeight_advanced_iframe(height) { aiResizeIframeHeightById("advanced_iframe",height); }</script></p>

    How do i stop the
    tags being created?

    Thank you

    http://wordpress.org/plugins/advanced-iframe/

  2. mdempfle
    Member
    Plugin Author

    Posted 10 months ago #

    This is really interesting.
    Because I only render a "\n" = new line and not a

    Please inspect this site and check if you see it also there:
    http://www.tinywebgallery.com/blog/advanced-iframe/demo-advanced-iframe-2-0

    Because when I check with firebug I don't see any
    there. Only a new line.

    Do you maybe have a plugin or something that replaces there something.

    As a quick fix you can simply remove the . "\n" in advanced-iframe.php

    Best, Michael

  3. mdempfle
    Member
    Plugin Author

    Posted 9 months ago #

    Seems wordpress enters this if there is a complete new line.
    I fix this in the next version.

    Best, Michael

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.