Ads By Google

How To Add Colors To Your Theme Sidebar

coloring-your-sidebar

There are times when you would like to add some color to your WordPress Theme’s sidebar to make it more unique, especially if you are using a free Theme which many others are using. There are a few ways to go about adding colors to your sidebars.

The easiest method would be simply specify a color for your sidebar background in your CSS stylesheet. This is because almost all WordPress Themes declare their sidebars as “sidebars” in the stylesheet so you can easily recognize that particular section. To add color to the sidebar background, simply specify the color you want by adding this attribute – background-color: #xxx; inside the curly brackets.

The downside of using this method is the color ends with your sidebars. So if you have a short sidebar, it will be “hanging” half way.

The other workaround would be to declare the color you want for the whole “container”, which is the column which houses your contents and the sidebars. Some programmers describes it with other words like “wrapper” or “columns” and others so you will have to do some guesswork. Again add in the same attribute. Once you get it right, the whole page, except for your main background will be in the color you specified. Now all you have to do is to change the color of your “contents” area. Then your sidebar will have the colors spreading right down to the footer.

The downside now will be your contents will be “hanging” if the area is shorter than the sidebars.

color-layout

The best and most professional looking method is to use an image to separate your contents and your sidebars. This way, the background of your sidebar and the contents will both spread evenly vertically across your page.

For noobs like us, getting the width right will be tricky. I use a very crude method which does away with any calculations. First, I specify a background color for the sidebars so I know the exact location. Then I take a screenshot of the page. Next paste the image in Photoshop. Crop the height of the image to approximately 10 to 15 pixels. The width must remain the same.

sidebar-color

Select the potion of the sidebar, which you now can see clearly where it start and ends. “Paint-Bucket” it with the color you like. Save the image as jpg. Give it a easy to remember filename like “pagebg.jpg” or something. Upload the image to your Theme’s images folder.

In you CSS file look for the “container” div or whatever that you should have guessed by now. Inside the curly brackets, instead of just the background colors, add the url of the images. Example: #container background: #000 url(images/yourimagefilename)repeat-y Update and refresh. You should have a nice and even background color separating the sidebar and the contents.

Share This Post
Ads By Google
 

Free Updates

Subscribe to receive Free WordPress Theme Tips, Reviews and Discount Codes

Related WordPress Theme Tips

Change Fonts And Colors To Twenty Ten ThemeTwenty Ten is the default theme that comes with every new WordPress installation. I have always maintained that if you want to use a free theme, the best theme that...

Add Left Sidebar To 2 Column WordPress ThemeFor a programming noob, how easy is it to add a left sidebar to a 2 column WordPress Theme that has a right sidebar? Not easy. The simple reason is,...

How To Add A No Sidebar Page To Your WordPress ThemeA reader, John asked whether it is possible to add an extra page template without any sidebars to the Soothing Theme. Seems like John would like to add a Forum...

How to add colors to the sidebars of Copyblogger ThemeI felt quite bored looking at my own blog that is so bland, so I decided to sneak around the stylesheet to add some colors to the sidebars so it...

How To Increase The Size Of Your WordPress ThemeSize, in this instance is the size area of your blog layout and not size in terms of traffic, contents or whatever that you deemed as the bigger the better....

Those who found this page were searching for:

  1. add color to sidebar wordpress
  2. curly bracket blog background
  3. how can i add color on wordpress sidebars?
  4. how to change title color in thesis wp theme
  5. twentyten sidebar background
  6. give me sidebar color background word press
  7. wordpress how to make sidebar different background color to content
  8. background color sidebar wp
  9. wordpress sidebar background
  10. how to change sidebar color wordpress

One Response to “How To Add Colors To Your Theme Sidebar”

Read below or add a comment...