WordPress.org

Forums

[Theme: TwentyTwelve] Remove sidebar with CSS (2 posts)

  1. martinbelton
    Member
    Posted 1 year 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?

  2. martinbelton
    Member
    Posted 1 year ago #

    I have also tried

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

    ... no luck :/

Topic Closed

This topic has been closed to new replies.

About this Topic