Page 1 of 1

Right sidebar on default to the left

Posted: Fri Jul 14, 2006 12:18 am
by Gamersea
Hello, I am changing the default theme but I want the right side bar at the left so you exacly have two left sidebars....

I saw it on different themes but then it was to sidebars on the right.

Posted: Fri Jul 14, 2006 7:43 am
by carl_galloway
That's easily done because that template uses a table to display the columns.

Simply replace the table withthis code;

Code: Select all

<table id="mainpane">
    <tr>
{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}
        <td id="content" valign="top">{$CONTENT}</td>
    </tr>
</table>
You will however need to adjust margins and paddings on the right column and content column to make them site correctly.

Hope that helps,

Carl

Posted: Fri Jul 14, 2006 4:51 pm
by judebert
If you don't want to adjust the CSS, you could try this:

Code: Select all

<table id="mainpane">
    <tr>
{if $leftSidebarElements > 0 or $rightSidebarElements > 0}
        <td id="serendipityLeftSideBar" valign="top">
        {if $leftSidebarElements > 0}{serendipity_printSidebar side="left"}{/if}
        {if $rightSidebarElements > 0}{serendipity_printSidebar side="right"}{/if}
        </td>
{/if}
        <td id="content" valign="top">{$CONTENT}</td>
    </tr>
</table> 
That actually transplants the right sidebar elements to the left sidebar.