WordPress.org

Ready to get started?Download WordPress

Forums

How to remove sidebar from Blog page in twenty ten? (9 posts)

  1. torndownunit
    Member
    Posted 4 years ago #

    I am using a static front page, and have a page called "News" selected for my Blog page. I have the 'one column, no sidebar' template selected for that page. But, the sidebar still shows up. How do I block it from appearing on that page?

    Page is here: http://www.technicor.ca/blog/?page_id=14

    Thanks

  2. chinmoy
    Member
    Posted 4 years ago #

    edit your page.php file:

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

  3. torndownunit
    Member
    Posted 4 years ago #

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

  4. PolyWogg
    Member
    Posted 4 years ago #

    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.

  5. PolyWogg
    Member
    Posted 4 years ago #

    Other thought -- did you delete your cache?

  6. flecks
    Member
    Posted 3 years ago #

    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?

  7. lrhpioo7
    Member
    Posted 3 years ago #

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

  8. chinmoy
    Member
    Posted 3 years ago #

    @lrhpioo7 and @flecks

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

  9. fringe
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic