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 all,
I'm having a hard time trying to figure out how I can hide the sidebar region inside the content zone on specific page...
This is the layout
Content Zone
- Content Region (18 columns)
- Sidebar Region (8 columns)
On the page that doesn't have the sidebar, the content region would need to be 24 columns...
Has anyone every done this?
Thanks,
Josh
Comments
Comment #1
venpyre CreditAttribution: venpyre commentedHello,
I have a similar problem.
Please help us ;)
Comment #2
webchickComment #3
stefan93 CreditAttribution: stefan93 commentedit's the debuging block who show the region even if is empty.
Comment #4
magibird CreditAttribution: magibird commentedIN other words, disable debugging in the settings for the theme and this problem disappears....
Comment #5
marko42 CreditAttribution: marko42 commentedIn order to see my layout with relevant debugging blocks I used css:
#region-sidebar-first {
display: none;
}
Add to global.css. Or use css injector. Kinda hacky, but it works.
Comment #6
amorales@drupal.org.es CreditAttribution: amorales@drupal.org.es commentedI think you can use Delta and Context to do it.
You can create a delta (copy of your theme) and set a context to that delta. The context should have the URL of the specific page you want to hide the sidebar.
On the delta (appareance -> delta options tab) you need to re-arrange the theme congifuration without the sidebar.
Take a look at the documenation: http://drupal.org/node/1341730