Ready to get started?Download WordPress


adding a third column (9 posts)

  1. kiersten
    Posted 8 years ago #

    Hi, is there an easy wa to add a third column (right hand side, below the header) to my page template? I want to start a third column to offer space for advertising.



  2. moshu
    Posted 8 years ago #

    is there an easy wa to add a third column

    There is never an easy way. A new column means re-designing the theme.

  3. klifix
    Posted 8 years ago #

    Well, what I did was tabling the index.php from your theme. (in the third column I have some advertise, see http://www.klifix.nl)

    So it is:

    <table CELLSPACING=0 CELLPADDING=0 width=700 font-family=Verdana, Arial, Helvetica, Sans-serif font-size=8pt align=top valign=left><tr>
    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="content">
    ///Beneath here is the content & your sidebar


    <?php get_footer(); ?>
    <td width=140 align=left valign=top>

    ///The content of your second sidebar (ont the right)


  4. maerk
    Posted 8 years ago #

    Tables? Aarrgh!

  5. jwurster
    Posted 8 years ago #

    I think it should be easy. I have done it with other 2 column themes, but it does depend upon the theme. First, you should copy the sidebar.php to another file and call it rightbar.php.

    Next, you need to create another div in the css file called rightbar. There is already a sidebar div. Edit the stylesheet and copy the sidebar div stuff and paste it, renaming the sidebar to rightbar.

    Then, in your index.php file, add the following line before the get_header line:
    <?php include (TEMPLATEPATH . '/rightbar.php'); ?>

    Then you will have to adjust the div widths in the stylesheet to accommodate 3 columns. The Content div is 530px. The Sidebar div is 180px. The rap div is 750px, so you probably want to have a total width of the 2 sidebars plus Content to be lees than 750. You could try changinging the sidebar widths to 130 and the Content to 430 and see how it looks.

    You will probably have to change these numbers until you get the proper fit.

    I think these steps should help you. However, I just started playing around with the theme you are using and it is not that simple. I will continue to look at it when I get a chance.

  6. jwurster
    Posted 8 years ago #

    As I've had some time to play with this, the adding of a 3rd column was not easy. Email me at jwurster at comcast dot net if you need help.

  7. klifix2
    Posted 8 years ago #

    so tables is more easier ;)

  8. jwurster
    Posted 8 years ago #

    No, tables to me are not easier.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Tables are more eviler.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.