WordPress.org

Ready to get started?Download WordPress

Forums

Flip WordPress Theme (3 posts)

  1. dusketh
    Member
    Posted 7 years ago #

    Can someone please help me with flipping my WordPress Theme (DarkNight 2.0) so the side bar is on the left.

    I would really appreciate it.

    http://www.andmusicforall.net/wordpress/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Two changes you need to make to your style.css to do this:

    1. First, somehow, your style.css file got duplicated a couple dozen times into the CSS file. I have no idea how you did this, but your CSS file is now 13000+ lines long. This is huge, and bad.

    So you need to scroll down until you see the /* Theme name: start again around line 524, and then delete that and *everything* after it. Keep a backup copy of the file, of course.

    2. Now that you have the file down to a lean 520 lines or so, make sure that it works the same in your site. If not, you messed up. Try again. Then, find the #menu and #content bits. They'll look like this:

    #menu {
      width:220px;
      float:right;
      }
    
    #content {
      width:680px;
      float:left;
    }

    Change the right to left and the left to right and voila, you've swapped their positions.

  3. dusketh
    Member
    Posted 7 years ago #

    omg whats up the with stylsheet duplication, deleted that, will try your flip suggestion now.
    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.