Right sidebar on default to the left

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Gamersea
Regular
Posts: 65
Joined: Thu Jun 15, 2006 8:52 am

Right sidebar on default to the left

Post 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.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
Post Reply