Moving sidebars

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Moving sidebars

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Moving sidebars

Post 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
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
Post Reply