Ads By Google

Changing Background Color For Your WordPress Theme

There are two backgrounds in a WordPress Theme. One is the overall background. If you have a fixed width theme, the color surrounding the contents is the overall background. The other is the content background. That is the background color that you see in your contents area. Changing the overall background color is very easy and straight-forward, but it might be a bit tricky to change the content background if you are dumb like me when it comes to codes. Today, we do the easy one first and that is to change the overall background color.

In all WordPress Themes, the codes for are written under the “body” division and it appears as the first batch of codes that you see when you open your stylesheet. It will look very similar to these codes, though some may be shorter.

body {
font-size: 10pt;
font-family: georgia,times,’times new roman’, serif;
background: #713600 url(images/planks.gif);
color: #303324;
text-align: left;
margin: 0;
padding: 0;
line-height: 140%;
}

What we are interested in now is the line of codes that I have italicized. If your background is just plain color, then you will not see the “url” of any images and there will only be number. Those numbers are the html color codes. Always include the “#” sign before the numbers. To change the overall background color, just change the html code numbers to a color you like.

Of course you will not know what number represent which color, so go Google for the term, “html color chart” and use any color chart as reference to find your favorite color. There is a nifty little tool called Pixie by Nattyware that I use often to check the codes for certain colors. Just hover your cursor over any color and the codes will appear in a small window. I find it very useful especially if you want to change your Adsense links to blend exactly with your normal links.

After getting your favorite color code just change the numbers in the “background”. You should see the new color after refreshing your browser. Now the image if you have one. If you want to change that, you will have to look for a new image and save it like what you did in my previous post. Only this time, you have to open the original image in your theme’s image folder and see the exact size.

Images are normally set to repeat, that is you upload a tiny image like 2 px and it when your theme loads, this image keeps repeating until it fills up your whole page. The example above does not show, but sometimes you will see the words, “repeat x, y” after the image URL. “Repeat x” will tell the browser to repeat the image from left to right and “repeat y” means repeating the image from top to bottom.

I never like images as background and I think neither should you. It is very distracting for your readers. Just keep it to a single shade or maybe two shades like this theme I’m using. I feel a background color like this is more elegant. If you don’t like images as a background, just delete the line of codes that says “url(images/xxx.gif)” Remember to leave the semi colons alone, and you will have a plain background with your favorite color.

Share This Post
Ads By Google
 

Free Updates

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

Related WordPress Theme Tips

CSS Codes To Highlight WordPress Post Background Color.Highlighting certain part of your post will attract your reader’s focus on something important that you might want to relate in your post. This following piece of codes will let...

How To Identify The Color Codes In Your WordPress ThemeThe colors of a WordPress Theme are the most changed part when anyone is customizing a Theme. Just a simple color difference can make your blogs theme look a lot...

How To Create A Beautiful Background For Your WordPress PostNow this is purely for pleasure only, but maybe on some occasions it could be useful. Having a beautiful background for certain post will bring out the mood for in...

How To Use An Image For Your WordPress Theme BackgroundFestive season is around the corner and I thought it would be a good idea to usher in the mood a little bit early this year. For those who are...

Simple Modifications For Your WordPress ThemeLots of us like to do some modifications to our WordPress Themes to make it look unique. In reality, modifying a theme’s look is easy and anybody, even without basic...

Those who found this page were searching for:

  1. google wordpress change background colour
  2. change wp bg colour
  3. how do you change wordpress.org theme bankground color
  4. chaning background color css wordpress
  5. wordpress change body background colour
  6. how to modify a color in a wordpress theme
  7. ebay-google-amazon-keyword-scraper
  8. how do you change the background color on a wordpress website
  9. change page background colors in wp
  10. how to change background color on internal pages for wordpress

2 Responses to “Changing Background Color For Your WordPress Theme”

Read below or add a comment...

  1. Jaxon S says:

    Ya, having pictures or any kinds of image in the background can be very distracting, not to mention juvenile in nature…

Trackbacks

  1. Changing Background Color For Your WordPress Theme [ Blog Gigs ] says:

    [...] 21st 2008 3:54am [-] From: blogigs.com [...]