Forums

How do I move sidebar to left in default theme? (7 posts)

  1. OneOfEm
    Member
    Posted 2 years ago #

    After looking through the stylesheet file, I realize that I'm going to have to read up on css. In the interim, however, I'd like to swap the positions of the two columns in the default theme.

    I'm guessing I have to change the sidebar to float: left, and change the margin for something to accommodate the change, but I've tried making changes in a few likely places with no result. I'd really rather not break the theme considering the other changes I've already made.

    Any help?

  2. moshu
    Member
    Posted 2 years ago #

    Don't sweat. You can't. If you want a theme that is easy to customize - pick another one.

  3. LeaseahB
    Member
    Posted 2 years ago #

    I'm not sure why you say this can't be done moshu.

    Try the following edits in your style.css file:

    You want to look for the #sidebar id and change the margin-left value to be something like 30px.

    #sidebar
    {
    padding: 20px 0 10px 0;
    margin-left: 30px;
    width: 210px;
    border: 1px solid green;
    }

    Then for the narrowcolumn class, you'll want to change the float from left to right, change the second number in padding (which correlates to the padding on the right) and the last number in the padding (which correlates to the padding on the left).

    .narrowcolumn {
    float: right;
    padding: 0 45px 20px 0px;
    margin: 0px 0 0;
    width: 450px;
    border: 1px solid red;
    }

    I'm working on an example at podcasting.lisaboyd.com

    Hope this helps!
    Lisa B.

  4. Root
    Member
    Posted 2 years ago #

    Lisa B you obviously have not noticed that you still have the right menu faux column which is now behind your content. Moshu is a very experienced web developer and his advice is worth following invariably. He is right on the money about editing the default. Wise people do not attempt it.

  5. riverbum
    Member
    Posted 2 years ago #

    Hello I'm just starting to play with the layout of a new blog and I'm new to wordpress. Could you suggest a template worth trying to edit?

    thanks!

  6. Root
    Member
    Posted 2 years ago #

    For 2 columns: Gemini. For 3: Trident or Vesuvius. :)

  7. riverbum
    Member
    Posted 2 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags