• Resolved nwalch

    (@nwalch)


    How do I remove the left sidebar and make the main post/content area fill the gap (so you have a larger main content area with just the secondary sidebar to the right of t).

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you’re running the Jetpack and have enabled the Custom CSS, you can add this to it. That worked for me.

    .featured-wrapper {
    	float: left;
    }
    
    .content-wrap {
    	float: left;
    }

    Ordinarily, in the main style.css, these classes float right to force them to the right of any sidebar you have loaded on the left.

    You have two main “content” areas, the “content-wrap” class is used for pages, posts, and on the main featured content page, for Recent Articles etc. However, the featured posts with the slider live inside the “featured-wrapper” class so you have to float that left as well.

    Important note: if you add items back into the Primary Widget area, they’ll appear to the RIGHT now of your main content. So the “float” attribute acts as a “swap” or “flip-flop” for where the widget will appear.

    That’s fine for my purposes, but if you want to actually completely remove the sidebar from the markup and have your content then act “full width”, that’s another question!

    Thread Starter nwalch

    (@nwalch)

    Thanks for the reply. Yes the primary side bar ( or a blank space if I remove all widgets from it) now appears on the right hand side of my page. What I’m really trying to do is remove the left/primary side bar and get he main content area to fill the gap, leaving just the secondary sidebar to the right.

    You can edit the style declarations above to take up 100% of the width.

    .featured-wrapper {
    	float: left;
            width: 100%;
    }
    
    .content-wrap {
    	float: left;
            width: 100%;
    }

    However, when you do so the “featured post images” won’t automatically adjust, their size is set by the theme to be the size it is. I’d have to do a little more research to figure that out.

    For my site I didn’t bother, since I do use the Secondary widget area for my shopping cart pages.

    Thread Starter nwalch

    (@nwalch)

    That’s fantastic. Now looks exactly how I want it. Many thanks for your help.

    Hi guys! I’m hoping to do the same thing. I was just wondering, once you remove the left sidebar and having the main content spread out to fill the space:

    – have you managed to get the theme to automatically size new thumbnails to the right size?
    – what have you done in the CSS to get the ‘category’ and ‘read me’ labels to be in the right position again?

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I remove the left sidebar – Oxygen Theme’ is closed to new replies.