Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi
i want to add additional sidebar to my zen based fixed 3 columns theme as an additional left sidebar
i added it to the theme info and print it in the page.tpl.php file but i didn't know how to configure it's css to make it look correct
my theme contains 4 columns like this
left sidebar 1 : 130px
left sidebar 2 : 240px
content : 490px
right sidebar : 130px
so the total width will be 990px
how can i do that ?
Comments
Comment #1
shruti.sheth CreditAttribution: shruti.sheth commentedTo add an additional sidebar to custom zen
1. Add the following code in your page.tpl.php between the sidebar_first and sidebar_second
2. Add the region as follows in your .info file
3. Add the following code for css in your custom .css file
Comment #2
mbasfour CreditAttribution: mbasfour commentedi tried this steps but it disable the hiding region when it's empty feature from the theme and i want this feature to stay active .
Comment #3
shruti.sheth CreditAttribution: shruti.sheth commentedHello,
Can you please explain the problem in detail, like
1. What output is expected.
2. What output you actually get. (With the help of screenshots if possible.)
3.List the steps you perform before coming across this error.
Thanks,
Shruti
Comment #4
mbasfour CreditAttribution: mbasfour commentedi followed the steps in your first comment but it makes the content region have fixed width even when there is no content in the
sidebars i want to hide the sidebars when there is no content in them
Comment #5
mbasfour CreditAttribution: mbasfour commentedhi
i fixed this problem with some php coding in the theme page_preprocess function