WordPress.org

Ready to get started?Download WordPress

Forums

Putting a post in its own scrollable area (similar to a frame) (6 posts)

  1. vtblogmu
    Member
    Posted 3 years ago #

    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?

  2. David Gard
    Member
    Posted 3 years ago #

    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.

    Thanks.

  3. vtblogmu
    Member
    Posted 3 years ago #

    Yeah I know frames are evil :P 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...

  4. David Gard
    Member
    Posted 3 years ago #

    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.

  5. vtblogmu
    Member
    Posted 3 years ago #

    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>)

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    how about a box with a set size, and overflow set to scroll on css? So it acts like this:
    http://thevoodooempire.com/blog.php

    Not entirely sure that's what you are going for.....

Topic Closed

This topic has been closed to new replies.

About this Topic