Page 1 of 1

Moving sidebars

Posted: Sun Oct 14, 2007 4:42 pm
by rj
I did this long ago but have since forgotten how to do it.
I want to see what it looks like with both sidebars on the Right rather than on each side.
Where do I do that from? Spent a lot of time in CSS and cant figure it out.

thanx

RJ

Re: Moving sidebars

Posted: Sun Oct 14, 2007 11:18 pm
by yellowled
rj wrote:I did this long ago but have since forgotten how to do it.
I want to see what it looks like with both sidebars on the Right rather than on each side.
Where do I do that from? Spent a lot of time in CSS and cant figure it out.
As usual, it depends on the actual template you're using. Even better would be an url to the blog in question ...

YL

Posted: Mon Oct 15, 2007 2:53 am
by rj
http://rackjite.com

Orginally it was called CARL CONTEST, but in the past year I changed it so much I dont know if that matters any longer. :)
But its still called that in the directory.

Thanx

RJ

Posted: Mon Oct 15, 2007 9:59 am
by yellowled
rj wrote:Orginally it was called CARL CONTEST, but in the past year I changed it so much I dont know if that matters any longer. :)
It does, since it still uses the table layout. Oh my.

Find this part in your index.tpl:

Code: Select all

<table id="mainpane">
    <tr>
{if $leftSidebarElements > 0}
        <td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
        <td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
        <td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
    </tr>
</table>
and edit it like this:

Code: Select all

<table id="mainpane">
    <tr>
        <td id="content" valign="top">{$CONTENT}</td>
{if $leftSidebarElements > 0}
        <td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
{if $rightSidebarElements > 0}
        <td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
    </tr>
</table>
I think that should already do the trick (might need some adjustments with the sidebar borders, though), but I'm not really good with table layouts :roll:

YL