Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hey there,
I've spent a little time working on a Zen sub-theme as part of a personal project, and I'm really happy with it so far. The way the concept was supposed to go, was a thicker right-hand sidebar (250+ in width, probably) but no left sidebar at all. Not now, not in the future.
Can I completely remove this from Zen without harming the core at all? It makes no sense in having something there which is never going to be used - part of my learning process with this framework is making any work I've done as clean as possible.
Thanks guys, and good work,
Kris
Comments
Comment #1
rougekris CreditAttribution: rougekris commentedNo response, anyone?
Comment #2
shruti.sheth CreditAttribution: shruti.sheth commentedHello,
The first sidebar can be removed completely if not required and the width of second sidebar can also be increased.
The following can be one of the ways for doing it.
1. Remove the following code from your page.tpl.php
2. Also, remove the following code from your layout-fixed.css
a) remove the width: 200px; from following code
b) Change the width to 300px in the following code
c)Remove the margin-left:200px from the following code so that content moves to left.
Hope this helps !
Thanks,
Shruti
Comment #3
bhill9270 CreditAttribution: bhill9270 commentedWould you want to remove any instance of sidebar_first from the template.php?
Comment #4
sunshinee CreditAttribution: sunshinee commentedI wouldn't think you need to mess with template.php, but you'll probably want to remove the region from you subtheme.info file to avoid its appearance on the block administration page, for example.
I haven't tested this, btw.
Comment #5
KrisBulman CreditAttribution: KrisBulman commentedNo need to remove sidebar_first data from the template.php, it just gives you one more thing to manage in a subtheme. At the very least, removal of the
print $sidebar_first;
from the page template, and the region information from the .info would be sufficient (of course, you don't need the styles either, but they won't cause problems).Comment #6
rougekris CreditAttribution: rougekris commentedGuys, stop replying to this. This issue is over a year old. It's been fixed a long time since then.
(Remove the sidebar from the .info file, and from any calls in .tpl files.)
Comment #7
rougekris CreditAttribution: rougekris commented