Moving sidebars, making fluid-width?
lsabug - November 4, 2007 - 17:09
| Project: | Marinelli |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
Hi, dig the theme and was wondering if there was a simple way to move the leftsidebar to the left? I tried modifying the template and page tpl but broke the layout.
Thanks!

#1
Figured it out, changed the page.tpl.php at around line 49 to put sidebar_left above primary and thus far it seems to work. You'll have to tweak the css as well.
<div class="content">
<!-- sidebar_left -->
<?php if ($sidebar_left) { ?>
<div class="lsidebar">
<?php print $sidebar_left ?>
</div>
<?php } ?>
<div id="primary" style=<?php print '"width:'.susdmar_width( $sidebar_right, $sidebar_left).'px;">' ?>
<div class="singlepage">
<?php if ($breadcrumb) { ?><div class="path"><?php print $breadcrumb ?></div><?php } ?>
<?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
<?php if ($tabs): print '<div class="tabs">'.$tabs.'</div>'; endif; ?>
<?php if ($help) { ?><div class="help"><?php print $help ?></div><?php } ?>
<?php if ($messages) { ?><div class="messages"><?php print $messages ?></div><?php } ?>
<div class="drdot">
<hr />
</div>
<?php print $content ?>
</div>
<hr />
<!-- // itementry -->
</div>
<!-- //primary -->
<hr />
<!-- sidebar_right -->
<?php if ($sidebar_right) { ?>
<div class="rsidebar">
<?php print $sidebar_right ?>
</div>
<?php } ?>
#2
Where do you have to tweak the CSS?
I really like this theme but need it to have one side bar on the left and one on the right?
Thanks
GearHead
www.musclecarsociety.com
#3
I'm wondering about making this design truly flexible, so the content area gets narrower if the browser window gets narrower -- otherwise the right side disappears and those folks who live in the land of DUH! wouldn't think to look over there. But in the css I see all this !important! stuff with the page width, so I'm wondering if this is feasible.
Great design, otherwise; I'd just like it to be fluid-width.
Thx!
Andria
#4
not planning to make it fluid width at the moment!
#5
but can you make the left bar to be on the left side?