Monday, October 26, 2009

Add or Change Background Image of a Blogger Template

In today's Blogger tutorial (Blogspot tutorial) I will show you how to both add a background image to a Blogger template if you don't have one already or change the existing background of your Blogger template.

I have chosen to write this article not because there aren't any how to articles already on the net but because they assume quite a bit of knowledge. I have taken a different tack with this post in that I assume you are an absolute beginner with no knowledge of Blogger templates.

For this reason I have provided some sample backgrounds for you to play around with. By just cutting and pasting these images you can see first hand how dramatically adding a different background to your Blogger template can change it. You will see that replacing your background image with these images isn't that difficult and hopefully it will give the confidence to branch out further and change the background of your Blogger template to suit your own needs. All that is needed is to insert a small snippet of code into the CSS styling section of your Blogger template and hey presto your Blogger template will take on a whole new look.

How to Change the Color of a Blogger Background (Default Templates)
If you are using a default Blogger template then you already have the option to change the background color to your own taste by going to Layout > Fonts and Colors. Some third party custom Blogger templates have this option too but by no means all. For instructions on changing the background color of custom templates see tips and troubleshooting below.

How to Add a Background Image to a Blogger Template

  1. Log in to Blogger if not already logged in

  2. Go to Layout > Edit HTML

  3. Back up your Blogger template as a precaution by downloading the full template to your computer

  4. Find the following line in your Blogger template

    body {

  5. Add the following line directly after this line
    background-image: url(URL address of your image);

    Your block of code will now look like this:

    body {
    background-image: url(URL address of your image);
    (existing code in this block)
    }

  6. Now replace the code in red for the URL address of your image. Choose an image from the selection below to practise with or use your own image. Note if using your own image make sure you read the tips and troubleshooting section below.


    http://1.bp.blogspot.com/_vLeiVavkV_M/Suar7GicppI/AAAAAAAACEU/ehsnwoKlQ5Y/s320/background_047.gif


    http://2.bp.blogspot.com/_vLeiVavkV_M/SuamXkfTu8I/AAAAAAAACDs/rJnVhvFbM1M/s320/background_104.gif


    http://1.bp.blogspot.com/_vLeiVavkV_M/Suan8y-9mYI/AAAAAAAACD8/oc0bPJN37o0/s320/background_126.gif


    http://3.bp.blogspot.com/_vLeiVavkV_M/Suao0VP9FKI/AAAAAAAACEM/e2CHiBRQw4Q/s320/background_073.gif


    http://2.bp.blogspot.com/_vLeiVavkV_M/SuaovXygRTI/AAAAAAAACEE/EKKrQIKWLeE/s320/background_083.gif

    Green Paws Background

    http://2.bp.blogspot.com/_vLeiVavkV_M/SuanXnu7qsI/AAAAAAAACD0/Dg-liDplbL8/s320/green-paws.gif

    Musical Notes Background

    http://3.bp.blogspot.com/_vLeiVavkV_M/SuasPNs6XdI/AAAAAAAACEc/Vp3SxC6OVF8/s320/melody.gif

  7. Use the Preview button to see the effect of these different backgrounds on your template. It will help you get an idea of the kind of possibilities out there.

  8. You are welcome to use one of the above Blogger backgrounds as they are all free to use without any restriction. If you decide to use one of these simply click on Save Template and you are in business. Alternatively go ahead and find your own background image on the net and follow the instructions below to insert it into your Blogger template.

Tips and Troubleshooting

  • To Add Your Own Image to a Blogger Template
    There are huge number of backgrounds on the net that are suitable for Blogger. Search under free website backgrounds in your favorite search engine to find these.

    Simply download your preferred background and save to an image service like Photobucket, Flickr.

    Make sure the file format is either a .jpg, .gif or .png and that its size does not exceed 100kbs. As a rule of thumb an image size of around 30kb or less is about right if loading time speed is not to be compromised. Larger images can be resized quickly by using an online resizing service such as Shrink Pictures.

    Follow the instructions above to change the URL to that of your image.

  • To Change the Background Color of Your Custom Blogger Template
    If there is no option to change the background color of your Blogger template in Layout > Fonts and Colors you can still change the color manually.

    1. Follow steps 1 to 4 as above

    2. Find the line beginning with :

      background-color: #

    3. The hex color will be different for each template. We will change the color only

      background-color: #change hex color code to your chosen color;

    4. Replace the existing hex color code with the value of your chosen hex color. List of web safe hex colors. For example insert the following code to change the background color to:

      Denim Blue
      background-color: #336699;

      Black
      background-color: #000000;

      White
      background-color: #ffffff;

    5. Use the Preview button to see the effect of each color before you save it.

    6. Once you are satisfied go ahead and click on Save Template

Today's Blogger tutorial (Blogspot tutorial) aimed at Blogger beginners continues the series on CSS styling for Blogger. You have learned how to add the background image to your Blogger template or change the existing background image. To help you gain confidence in changing the background image I have provided some sample images for you to practise with. Also in this Blogger tutorial you have learned how to change the color of your Blogger background if you prefer a plain solid background color rather than a background image. As always if you strike any problems implementing the tips in this tutorial please let me know.

Related Articles
List of Blog Know How Tutorials for Blogger Blogs
How to Add, Delete or Remove Blogger Image Borders
How to Align and Justify Posts in Blogger
How to Add a Divider Between Blogger Posts



Subscribe to Blog Know How by Email

7 comments:

Hapi said...

hello... hapi blogging... have a nice day! just visiting here....

The Wizz said...

Thanks for stopping in Hapi. Hapi blogging to you too!

Anonymous said...

hey thanks for nice tips and tricks.
Would you please let me know if we can check when the blog has been created in blogger (blog created date)?

The Wizz said...

Hi Anonymous thank for your feedback on this article. I know of no actual way to check the blog creation date however if you look at the archives you can see when the first post was created (provided of course the archives are displayed in a widget). I am assuming this is not your blog you are asking about but someone elses.

dorla said...

Really great ideas. I like every example. Just might have to try these...
more template

The Wizz said...

Dorla I hope you will try these as it is amazing how much a few simple changes to your blogs background can make :)

yahaya said...

thanks good info

Post a Comment