WordPress.org

Ready to get started?Download WordPress

Forums

How to add iframe (12 posts)

  1. DevilsChild
    Member
    Posted 8 years ago #

    Dont know what I am doing wrong. Every time I add an iframe in the html code for creating new pages, it messes up my page. When I add the code, the code works. But the close tag gets delete. The </IFRAME>

    Here is the code I have tried. Is there any other way?
    <iframe src=http://address_to_template></iframe>

  2. spencerp
    Member
    Posted 8 years ago #

    Searching always helps lol. All those threads are related to Iframes, and *hopefully* you can find your answer there. =p

    But, this also *might be* useful too:
    http://wordpress.org/support/topic/64438?replies=7

    I'm not sure though, because I *never* used an iframe in WordPress before.. =/

    spencerp

  3. yosemite
    Member
    Posted 8 years ago #

    I used an iframe once. Think it was in 2001? I have since forgiven myself...

  4. spencerp
    Member
    Posted 8 years ago #

    I used an iframe once. Think it was in 2001? I have since forgiven myself...

    LOL! I think the last time I used an Iframe, it was in a normal HTML, TABLE based site... was like back in 1999 I think, when just starting to learn HTML and such.. Haven't used it since either.. lmao!

    spencerp

    Sam, I've been wondering..all those Tutes that you've made up on your blog, have you added any to the Codex yet? Or..if not, are you going to? ;) I think they would be very useful there as well. =)

  5. DevilsChild
    Member
    Posted 8 years ago #

    Well I cant include a php code in the edit html part of the script. Doesnt show up. So some one suggested iframe. I dont like using it also.

  6. yosemite
    Member
    Posted 8 years ago #

    I expected to get some feedback and tidy them up, but hadn't thought about adding to the codex... I'm hearing Wayne: "We're not worthy!!!" ;')

  7. maerk
    Member
    Posted 8 years ago #

    DevilsChild: http://wordpress.org/support/topic/79131?replies=3

    That should help you.

  8. spencerp
    Member
    Posted 8 years ago #

    *EDITED* maerk, you beat me! lol! It's all good though.. ;)

    DevilsChild, second reply there..it's a plugin.. might help ya..
    http://wordpress.org/support/topic/79131?replies=3#post-408799

    or: http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

    But, I prefer the RunPHP over the second option..

    I expected to get some feedback and tidy them up, but hadn't thought about adding to the codex...

    Oh ok..well, I'll have to check them out more then, give some feedback.. ;)

    I'm hearing Wayne: "We're not worthy!!!" ;')

    Hahaha.. =)

    spencerp

  9. smilf
    Member
    Posted 7 years ago #

    It's not just you, but any iframe tag -- the damage depends on where it appears in the page build. It is a known defect. The problem here is that WordPress tries to parse coding and tags. As a result, "<iframe src='yadda yadda' etc.></iframe> " is converted to "<iframe src='yadda yadda' etc. />" and the rest of the page doesn't load properly. The fix seems to be to turn off 'rich text editing' and insert: "< br /></iframe>". I saw a suggestions of &nbsp; but the rich text editor saw through that ploy. Thereafter, as long as the iframe sizes are appropriate to layout they seem to play nice with the other elements.

  10. Dizzie
    Member
    Posted 7 years ago #

    doesn't work....

  11. SLeepdepD
    Member
    Posted 7 years ago #

    I'm just getting started with WordPress, and I've been wanting to do something for a couple weeks now: On my site, I want to add a Page for each of my social networking sites--embedding them right in the post, so no one has to click-through to see them. And for this I've used IFRAMEs. But everyone's talking about them like they're bad...why? And what's the best way to do something like this? Thanks for the help all.

  12. leviputna
    Member
    Posted 7 years ago #

    Don't know if this helps but i have a little plugin that allows you to add tags to your rich text editor, iframes are one of the examples that ships with the plugin. http://www.ozblog.com.au/?p=81

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags