Forums
Home / Themes and Templates / [Theme: TwentyTwelve] Remove sidebar with CSS
(@martinbelton)
9 years, 11 months ago
I am working with twentytwelve, and would like to remove the sidebar using CSS only.
I have tried removing the widget area (ie – sidebar) from specific pages in the CSS with:
.page-id-156 #secondary-content { display: none; } .page-id-156 #primary-content { width: 100%; }
which doesn’t work with twentytwelve. The tag in the CSS, I believe, is
.widget-area {
Could someone please help me with the correct syntax?
I have also tried
.page-id-156 .widget-area { display: none; width: 0; height: 0; } .page-id-156 main-content { width: 100%; }
… no luck :/