WordPress.org

Support

Support » Themes and Templates » How to remove sidebar from Blog page in twenty ten?

How to remove sidebar from Blog page in twenty ten?

Viewing 8 replies - 1 through 8 (of 8 total)
  • edit your page.php file:

    remove this code from that page ‘<?php get_sidebar() ?>’

    Will that remove it from just the Blog page though, or all pages? Thanks.

    That would remove it from all pages. I’m not sure why yours isn’t working, unless you modified some other code. I’ve done same on my site for a specific “sub-page”, and it worked fine:

    http://www.polywogg.ca/wp/transitions/transitions-main-page

    All I did was tell it on the post page to use the one-column, no sidebar template, and it worked fine.

    P.

    Other thought — did you delete your cache?

    You also have to remove it from index.php!

    I got another question.

    When I have removed the sidebar, how can I change that the posts and pages also write in that area, where the (removed) sidebar was? I think it is somewhere in the style.css, can somebody help me please?

    flecks, I’m with you. Why have dead space where sidebar was. Think we might have to reset the ‘px’ values?

    @lrhpioo7 and @flecks

    Change your css file. You will increase the content width.

    Go to the page you want and on page attributes set to one column no side bar.

    Then change this bit of code in stylesheet.css

    LAYOUT: One column, no sidebar
    DESCRIPTION: One centered column with no sidebar
    */
    
    .one-column #content {
    	margin: 0 auto;
    	width: 640px;

    To

    LAYOUT: One column, no sidebar
    DESCRIPTION: One centered column with no sidebar
    */
    
    .one-column #content {
    	margin: 0 auto;
    	width: 900px;

    Worked for me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove sidebar from Blog page in twenty ten?’ is closed to new replies.