WordPress.org

Forums

Three columns layout? (10 posts)

  1. Anonymous
    Unregistered
    Posted 12 years ago #

    Hello. I want to have a three column layout. The left column for the menu; the right column for the category "news" and the center column for the rest of the categories except "news".
    What is the right code for the center and right columns?
    Obviously I'm not a programmer (although I understand some things about the "art")
    Regards and thank you in advance.
    Blei

  2. southerngal
    Member
    Posted 12 years ago #

    Hi,
    You probably should play around with the .CSS, as that's the only way to get it positioned the way you want. :)

  3. Anonymous
    Unregistered
    Posted 12 years ago #

    I do not have trouble with the CSS since I made already the layout. What I need is the code for the blog itself (I mean, selecting which categories will be positioned in the center and which at the right). Thanks anyway.

  4. Mike Little
    Member
    Posted 12 years ago #

    Hi Blei,
    It sounds like you want to have two 'views' of the blog on one page. That isn't easy to do (if it is at all possible) because currently WordPress uses the include of blog.header.php to set up all the data for a single 'view' of the blog (including restricting to one category or excluding one category), and then the 'loop' code in you template makes use of that data.
    To do what you need to do, you would have to do that process (include blog.header.php and 'loop' code) a second time. I'm not sure quite what would happen if you tried that.
    Mike

  5. Anonymous
    Unregistered
    Posted 12 years ago #

    Hi MikeLittle,
    That's exactly what I want to do. Thanks for putting the concept in the correct technical terms. What a pitty if that can't be achieved. So, at least for me, I would like to see this "two view of the blog in the same page" in the feature requests list :)
    Thanks.
    Blei

  6. Anonymous
    Unregistered
    Posted 12 years ago #

    I have done this before with the old b2, but it isn't pretty.
    What you could do is use inline frames. If you code the main page for example, with the center column containing all the other categorys by excluding the news category in the blog call at the top.
    Then, in the rightr column add an iframe (it can be blended in so that you can not tell it is is a frame) and use it to call news.php which only includes the news cat.
    It is messy, but if you work on this principle and test it a lot, it can work.

  7. Dougal Campbell
    Member
    Posted 12 years ago #

    If you understand what ragey was saying about using an iframe, then you might want to look at this other thread, which will explain how to get your news category into the iframe and leave the other categories in the main page.

  8. Anonymous
    Unregistered
    Posted 12 years ago #

    ragey, you are a genius!!!!! ;)
    I don't know why I didn't think about that before. It's like a dirty trick, but it sure will work! Thanks again.
    And dougal, thank you for that link. I'll certainly need the info.
    Hey, men, WordPress community rocks!!! :D
    Blei

  9. Anonymous
    Unregistered
    Posted 12 years ago #

    From now on, I'll say, and Dougal can clean up the mess :)

  10. Anonymous
    Unregistered
    Posted 12 years ago #

    Hey, I have another suggestion: You can change the b2rss.php file or create a new one based on this, to show only the 'news' posts, and call the the file where you want to show this category.
    Can anyone suggest an easy to setup rss parser script to read de rss file, please? ;-)
    Fallen

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.