WordPress.org

Ready to get started?Download WordPress

Forums

contents/posts in <iframe> (4 posts)

  1. the-geek
    Member
    Posted 6 years ago #

    i'm developing a theme 4 my very own use and this requires me to have the post displayed in a frame which would even have a scroller if needed. i experiment one but got failed... now the question is, if its actually possible to havee the post in a iframe? pls share your expertise. thanks

  2. transmothra
    Member
    Posted 5 years ago #

    i don't see why not, although you'd have to have a template.php to wrap it in, and then load the posts into a separate file inside the iframe. I'm really not sure how it would be done, though... maybe load single.php into the iframe?

    Why not use a div with overflow set to auto? Just specify a width and height and you've got a scrollable content box. Put the Loop inside of that.

  3. soomp
    Member
    Posted 5 years ago #

    dear transmothra
    your "use a div with overflow set to auto? Just specify a width and height and you've got a scrollable content box" suggestion saved my life! just wanted to say thanks :)

    i heart wordpress!

  4. truetone
    Member
    Posted 5 years ago #

    Wow. What a simple, elegant solution. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic