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,
What is required to remove the sidebar from a page when it contains no blocks?
Comment | File | Size | Author |
---|---|---|---|
#2 | container-2.png | 185 bytes | ymmatt |
Comments
Comment #1
paskainos CreditAttribution: paskainos commentedShort answer: remove the following lines in sites/all/themes/celadon/css/celadon-style.css:
and
More appropriate answer: A considerable overhaul. The aforementioned answer doesn't address the
#main-wrapper
background:which includes the background for the sidebar region in question. Therefore, the main wrapper styling and sidebar styling would also have to be revised to maintain design integrity - which in turn presents additional issues, and creates more work.
Comment #2
ymmatt CreditAttribution: ymmatt commentedFor future reference in case anyone else runs into this issue this is all I had to change:
I used this in a view and simply added the view id found in the HTML before the above CSS id/class, gave me one big column which is what I was looking for.