Forums

Moving TwentyTen sidebar to the left breaks one-column view (2 posts)

  1. Graham Stoney
    Member
    Posted 11 months ago #

    I've created a modified TwentyTen child theme with the sidebar on the left hand side, by changing the "float" setting in these style.css rules:

    /* Put the sidebar on the left */
    #container {
    	float: right;
    	margin: 0 -240px 0 0;
    	width: 100%;
    }
    
    #primary,
    #secondary {
    	float: left;
    	overflow: hidden;
    	width: 220px;
    }

    This seems to work fine, but it breaks the one-column template because the content is no longer centred. Anyone know how to move the sidebar to the left without breaking one-column layout in TwentyTen?

    Thanks,
    Graham

  2. alchymyth
    The Sweeper
    Posted 11 months ago #

    in my twenty ten child theme with sidebar on the left, i have added an extra css rule for the one-column template:

    #container.one-column{
    float:right; margin-right: 0px;
    }

    (untested, as i can't see you site to check it)

    btw:
    consider creating a child theme http://codex.wordpress.org/Child_Themes, to avoid loosing all modifications of twenty ten with the next upgrade of wp.

Reply

You must log in to post.

About this Topic