Moving Wordpress Sidebar from Right to Left

I'm using the twentytwelve theme and I want to move the sidebar to the left side of the page, I realize that I need to change the floats for the content and the sidebar.  My problem is I cant find the file location of where these styles are called.

 I'm also using the simple sidebar plugin, not sure if this is related to my issue.
deitercat2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
The plugin shouldn't matter.

TwentyTwelve makes heavy use of get_template_part() so finding stuff can be a little tricky.  Are you familiar with how to read that function and locate the theme files it refers to?
0
deitercat2Author Commented:
Not really, I was able to locate get_template_directory() in the functions.php file.
0
andy_adamsCommented:
Hey there,

If you modified style.css by adding this to the very bottom of the file, you'd be off to a start on swapping the sidebar position:

.site-content {
  float: right;
}
.widget-area {
  float: left;
}

Open in new window


Let me know if that makes any sense. You might also consider making a child theme to prevent updates to TwentyTwelve from overwriting your changes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

deitercat2Author Commented:
Thank you andy_adams, that is exactly what I was looking for.  Now I just need to reduce the large space between the nav and content area.
0
andy_adamsCommented:
Great! Not sure if this is what you're looking for, but if you modify the above to read:

.site-content {
  float: right;
  margin-top: 0;
}
.widget-area {
  float: left;
  margin-top: 0;
}

Open in new window


...it might reduce it to your liking.
0
deitercat2Author Commented:
I'm sorry, I meant reducing the space between the left navigation and the content that spans the remainder of the page.
0
andy_adamsCommented:
I gotcha. It might require some tweaking on your part, but you can increase the width of the content area (thus pushing it to the left) using this CSS (add to the bottom of style.css):

@media screen and (min-width: 600px) {
  .site-content {
    width: 73.1%;
  }
}

Open in new window


Play with that value, maybe also with the margins, and let me know how it works!
0
deitercat2Author Commented:
Andy, thanks for your help, that is much better.  My biggest struggle with WP is getting a handle on where everything is.  I use the inspect element a lot in the browser, but pinpointing the styles and their locations can be maddening at times.  I'm sure I'll have more questions very soon.  -Deitercat2 (Jeff)
0
deitercat2Author Commented:
Appreciated experts comments, recommendations and sincere effort to help resolve my question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.