WordPress.org

Support

Support » Themes and Templates » [Theme: TwentyTwelve] Remove sidebar with CSS

[Theme: TwentyTwelve] Remove sidebar with CSS

  • 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?

Viewing 1 replies (of 1 total)
  • I have also tried

    .page-id-156 .widget-area {
    	display: none;
    	width: 0;
    	height: 0;
    }
    
    .page-id-156 main-content {
    	width: 100%;
    }

    … no luck :/

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: TwentyTwelve] Remove sidebar with CSS’ is closed to new replies.