Changing Sidebar from right to left in wordpress

4 replies
  • WEB DESIGN
  • |
Can anyone help me with this. I am using Flexibility theme 2, but I want to change the sidebar from right to left. I tried Googling it, because I know it "should" be fairly simple, only thing I could find was

In your style.css file:

#content {
float:left;
width:588px;
}
#sidebar {
float:right;
width:272px;
}Switch the left and right. Seems simple enough...except that style.css file for flexibility 2.0 has NOTHING in it, except a blurb about the theme editor etc.

So I tried changing it in the style.php file and nothing happens. Is there a quick way to change it? Or is this theme just too complex to do something like that?

Thanks in advance,
Sylvia
#changing #left #sidebar #wordpress
  • Profile picture of the author Karen Blundell
    Hi Sylvia,


    If only it were that simple!
    Besides changing it on style.php to #sidebar {
    float:left;

    there will be other adjustments (padding, margins, etc.)you'll need to make as well
    and you're going to actually have to change the XHTML on several of the .php files such as index.php, single.php, page.php, archives.php and any other .php file where you need to include the sidebar
    so that all the references to <?php get_sidebar(); ?> or similar code has to be inserted before <div id="content">

    so no, it's not just a simple fix, unfortunately
    Signature
    ---------------
    {{ DiscussionBoard.errors[1735785].message }}
  • Profile picture of the author Sylvia Meier
    LOL figures. Thanks Karen.
    Signature
    {{ DiscussionBoard.errors[1735954].message }}
  • Profile picture of the author Sylvia Meier
    Karen,
    Thanks so much for mentioning what you did, because of it, I was able to go in myself and trial and error where it should be on each page and successfully switched it over!

    Sylvia
    Signature
    {{ DiscussionBoard.errors[1735988].message }}
    • Profile picture of the author Karen Blundell
      woot! that's great! Glad I was able to help, even a little
      Signature
      ---------------
      {{ DiscussionBoard.errors[1737842].message }}

Trending Topics