Support » Fixing WordPress » Putting a post in its own scrollable area (similar to a frame)

  • What I’d like to do is define a certain part of the post to be in a scrollable area (basically a seperate frame) and put the post in there so I can scroll through a post or scroll through the wordpress page.

    How do I accomplish this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Frames are evil and should be avoided at all costs. Search engines don’t like them and you’ll probably find that a lot of your visitors do not either.

    If you are struggling with long posts then I would suggest looking in to the_excerpt(), as that is a way of showing only a preview of the post and giving a link for the user to click on to view the rest if they so wish.


    Yeah I know frames are evil 😛 I can’t use the_excerpt() because I’m trying to show the whole post, the problem is the custom theme I’m using does not allow vertical scrolling and instead I have to use a page system (i.e. next page/previous page), but that uses javascript which causes problems for some people, and pretty much everyone would rather scroll vertically instead of going through pages.

    There must be a solution to my problem that doesn’t involve frames…

    When you say a theme that doesn’t scroll vertically, I assume that is by choice, to try and preserve the look of the site?

    You could use a text box (like the ones you write in on here) to display the_content()

    <textarea id="post-<?php the_id(); ?>" class="post-in-textarea"><?php the_content(); ?></textarea>

    You cas then style the textarea using CSS to change the backgraound to match the site, remove borders, change heitht and width, etc.

    I tried that but then the text area doesn’t display images or anything, it just shows the html tags for it (such as <img>)

    how about a box with a set size, and overflow set to scroll on css? So it acts like this:

    Not entirely sure that’s what you are going for…..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Putting a post in its own scrollable area (similar to a frame)’ is closed to new replies.