Closed (fixed)
Project:
Zen
Version:
6.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2011 at 16:44 UTC
Updated:
1 Feb 2012 at 16:10 UTC
Is it possible to hide the first sidebar on only one content type? The default layout for the site includes the first sidebar, but it's in the way on one particular content type and I'm looking for a way to hide it.
Thanks for any advice or suggestions.
Comments
Comment #1
Deepika.chavan commentedHi,
Try this out,
1. In template.php enable
YOURTHEME_preprocess_page(&$vars, $hook)function.Under that function add following code :
NOTE: Here my content type is 'dance_type'. Please replace it with yours.
2. Take a copy of page.tpl.php (if page.tpl.php is not there copy it from zen/templates/. )and rename it as 'page-dance_type.tpl.php' .
3. Open 'page-dance_type.tpl.php' i.e. newly created template file and remove following code :
4. Add following css :
5. Please clear cached data here- admin/settings/performance.
HTH!!
Rgrds,
Deepika Chavan.
Comment #2
camhowardHi Deepika,
Thanks very much for your clear directions. They work perfectly!
Much appreciated,
Cam
Comment #3
nikitavermajgd commentedthanks Deepika.chavan
Works fine!!