• Hello,

    I’ve been having some trouble when trying to use an iframe within a post on my wordpress blog. Check it out:

    I have had success with this before, so I don’t know why it keeps making trouble. This is what it should look like:

    https://www.anzarch.com/?p=58

    However, lately when I try and post, the entirety of the code within the iframe gets deleted when I post, or even when I switch between HTML and Visual in the editor it goes away and is sometimes replaced in the html editor with 3 spaces (actual spaces ” ” and not written nbsp;):

    https://www.anzarch.com/?p=94

    As you can see, there’s no iframe there. It’s the same exact code as on the former post–I have even copy and pasted the same code from the former post into a new post, and it still swallows up the code. The same code copied into a blogspot blog worked fine. Can anyone help me source the incompatibility?

    I am using WordPress 2.8.4 installed automatically from bluehost’s server. The theme is Tarski. The code that I am using to embed the iframe is:

    <iframe align="center" src="https://www.flickr.com/slideShow/index.gne?group_id=&user_id=21879932@N02&set_id=&text=" frameBorder="0" width="500" height="500" scrolling="no"></iframe>

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Have a check with this plugin:

    https://www.ads-software.com/extend/plugins/embed-iframe/

    Thanks,

    Shane G.

    Thread Starter anzarch

    (@anzarch)

    Thanks so much! It works great. However there is one little hiccup that I have encountered.

    https://www.anzarch.com/?p=94

    The scrollbar at the side is distracting. Do you know if there is a way to toggle it off? My content isn’t overflowing, I tried making the iframe extra tall and it still wants to put it there, insisting there is a little bit further down that it can scroll.

    (IE: Scrollbar is always there; Firefox: appears only on mouseover)

    Make sure that scrolling is set to no and try making the height of your iframe larger(though you did say you already tried that). Also make sure that your video is smaller than the iframe. If it still won’t work, it is probably a plugin-specific setting causing it to happen. Fortunately it isn’t an eyesore or very bad problem.

    Thread Starter anzarch

    (@anzarch)

    Okay, so there is no option within the plugin’s settings to choose scrolling=”no”

    However, I opened up the zip file and edited the file:

    embed-iframe/view/embed-iframe/iframe.php

    …and saw familiar looking code, so I simply added scrolling=”no” to the file, resaved it, rezipped it, and uploaded it, not changing anything else whatsoever.

    When I uploaded it though, it said it did not have a valid header and it is not on my plugins list. Did I do a wrong thing somehow when I edited the php file? I don’t know the first thing about php, but it was just simple iframe html code that I edited within the plugin file and I don’t think I tinkered in any way that should have caused this trouble.

    your iframe.php probably looked like this:

    <div class="iframe-wrapper">
      <iframe src="<?php echo $url ?>" frameborder="0" height="<?=$height?>" width="<?=$width?>" scrolling="no">Please upgrade your browser</iframe>
    </div>

    i normally edit and upload the files without rezipping (i use the ftp in dreamweaver).

    Thread Starter anzarch

    (@anzarch)

    Once I uploaded the modified plugin directly through my FTP rather than the zip file through the WP interface, it worked fine.

    Thanks for your help, everyone!

    I would also like to switch off the scrolling.

    Anzarch – do you have the exact code that you updated as I cannot see the obvious place to edit.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Trouble with iframes’ is closed to new replies.