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

rougekris’s picture

No response, anyone?

shruti.sheth’s picture

Hello,
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

<?php print $sidebar_first; ?>

2. Also, remove the following code from your layout-fixed.css
a) remove the width: 200px; from following code

/*
 * First sidebar
 */
.region-sidebar-first {
  float: left; /* LTR */
  width: 200px;
  margin-left: 0; /* LTR */
  margin-right: -200px; /* LTR */ /* Negative value of .region-sidebar-first's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-first .section. */
}

b) Change the width to 300px in the following code

/*
 * Second sidebar
 */
.region-sidebar-second {
  border: 1px solid red;
  float: left; /* LTR */
  width: 200px;
  margin-left: 760px; /* LTR */ /* Width of content + sidebar-first. */
  margin-right: -960px; /* LTR */ /* Negative value of .region-sidebar-second's width + left margin. */
  padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-second .section. */
}

c)Remove the margin-left:200px from the following code so that content moves to left.

.two-sidebars #content {
  width: 560px;
  margin-left: 200px; /* LTR */ /* The width of .region-sidebar-first */
  margin-right: -760px; /* LTR */ /* Negative value of #content's width + left margin. */
}

Hope this helps !

Thanks,
Shruti

bhill9270’s picture

Would you want to remove any instance of sidebar_first from the template.php?

sunshinee’s picture

I 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.

KrisBulman’s picture

Status: Active » Fixed

No 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).

rougekris’s picture

Guys, 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.)

rougekris’s picture

Status: Fixed » Closed (fixed)