The long awaited second installment of how to customize your blog with ease is finally here. I could see you turning blue while you held your breath. :D Hopefully you've gathered your patterns, colors, etc. as explained in Customizing Your Blog - Part 1.
The next lesson is learning the basics of HTML code and how it works. Once you know the language you can make some pretty good guesses on how to change things around with your blog template.
If you want to skip this part and just get to the instructions of changing the background of your blog scroll down until you see Changing Your Blog Background in bold.
HTML Basics
First you need to know that your computer doesn't see things the way we do. When we see:
italics,
bold,
or strike through
our computer sees:
<i>italics</i>
<b>bold</b>
or <s>strike through</s>
Interesting, eh? We can learn most of what we need to just from these examples. Unlike our children, a computer will do exactly what you tell it to. It will start and stop just when you say. Whatever code is enclosed in the < > signs tells the computer when to start (see the green letters). Whatever is enclosed in the </> signs (the red letters) tell it when to stop. Did you notice the one difference in those? You need to use the forward slash key (/) so the computer knows you are stopping. The reason is you can use a lot of codes to make a word italic, bold and strike through. We see:STRIKE THROUGH
The computer sees:
<i><b><s>STRIKE THROUGH</s></b></i>
Notice how it works. First we tell it to start being italic, then bold, then strike through. To tell it to stop you need to do it in reverse order. First we stop it being strike through, then bold, then italic. A "the first shall be last and the last shall be first" sort of thing.
That's the bare bone basics. Now you can kind of understand what you are reading when you look at your blog template in html form. If anything is enclosed in the < > signs your computer is being told to start something and if you scroll way down to the bottom I'm sure you'll eventually find the </> signs telling your computer to stop.
CHANGING YOUR BLOG BACKGROUND
Before going any further, as a disclaimer and to cover myself (because I don't want you messing up your blog and then blaming me for it) I highly recommend starting another private blog that you can practice on it. Believe me it is very worth it and oh, so helpful! I must also mention these instructions are for Blogger. Wordpress won't let you play around with your background unless you pay a fee, but why pay when Blogger lets you do it for free!
Now for changing the background of your blog. Open a new window, (you know so you can read and follow these instructions while you work on your blog template) and log in to your blog, go to "Layout", and click on "Edit HTML". Next make sure you click on the "Expand Widget Templates" option right above the html window.
Now scroll down the html template just a little way until you see
body {
background:$bgcolor;
margin:0;
color:$textcolor;
font:x-small Georgia Serif;
font-size/* */:/**/small;
font-size: /**/small;
text-align: center;
}
This tells your computer how you want the body of your blog to look. To change the background of your blog you need to change just a couple of things. Instead of
background:$bgcolor;
We want it to say
background-image: url(insert the web address for your image here);
The easiest way is just to copy the above code (highlight and hit Ctrl c), highlight the background:$bgcolor; in your template and then paste (Ctrl v). You do not have to hit delete after highlighting the background:$bgcolor;. Pasting replaces the code.
Now you need to obtain the web address for the background image you want to use and insert the address in the parentheses replacing the red text I have there. This is why I stressed having a Flickr account. Flickr provides the addresses. Open another new window and log in to your Flickr account. Click on the image you want to use for your background. Right above your image you'll see a button that says "All Sizes". Click on that. You'll see all the available sizes at the top. I find that the small and medium sizes work the best. Click on whatever size you want. Then scroll down below the photo until you see 2.Grab the photo's URL: The code you see right below that is the web address for your image. Copy it, go back to your blog template, and insert it between the parentheses. To see what you've done hit the PREVIEW button just below the html code window. A new window will pop up showing you what your blog will look like. If that's what you want then hit the save template. If you want to change the background, then insert a different url (web address) between the parentheses.
The steps are similar for changing the colors of the columns and header of your blog so they don't clash with the background.
For the header find the following code in your html template (about 1/8 of the way down):
#header-wrapper {
Right below that paste the following:
background-color: #color code;
Insert any one of the html color codes to replace the red color code text I have there.
Do the same thing for the main column (where your posts are). Scroll down just a little until you see:
#main-wrapper {
Paste the background-color:#color code; right below it.
And you can do the same for your sidebar pasting the code below
#sidebar-wrapper {
Hit preview to see if your blog is the way you want it. If it's not just insert new color codes until you get what you want. Make sure you save the template when you are done! After fiddling around you'll find it easier and easier to change the blog backgrounds because now you know what to look for in your html template.
If you want the background of your header to be a pattern or image (like I have on mine) you need to use the same background image code you did for your blog background instead of the background color code, inserting the correct url for the image you want.
If you run into problems, if my instructions aren't clear, or you have any questions, leave them in the comments and I'll try to answer them.
Next post in this series will be on changing the fonts in your sidebar and post titles.
Here's the other posts in this series:
Customizing your Blog - Part 1 Gathering Background Patterns and Colors
Customizing Your Blog - Part 3 Fonts
Tuesday, March 25, 2008
Customizing Your Blog - Part 2 HTML Code
Subscribe to:
Post Comments (Atom)



















22 cranially charged comments:
You know, I used to tease my husband about being a geek! (Computer Science major!) Now, he brags to his friends that I write HTML in notepad! Isn't it fun! ;o)
(Though my website building days are far behind me, knowledge of the code comes in super handy for blogs!)
Anne
"Unlike our children, a computer will do exactly what you tell it to." Ha ha. The bad thing about that is they will do exactly what you tell them to, even if it is wrong. Good tutorial. You explained everything really well. It might inspire me to change my blog background eventually.
Thank you for posting this! Very excellent and useful information. See? I'm putting it to good use already.
It's about time I start learning how to do this stuff. :)
Scripture applied to HTML, love it =)
Thanks for the tutorial. I'm going to keep all this handy for a time when I have time to mess around with it again. :-)
I have to say that I don't have the time and energy to design all this myself -- but I am mightily impressed that you are sharing such clear and wonderful directions with us all. How kind and generous of you. Seriously. I am going to bookmark these instructions in case I ever get more motivated.
Yeah, I think I can actually do this. Thanks for making it so simple!!
You ROCK!!
Sound's pretty clear. I'm going to have to try it. Thanks for the instructions!
Thanks for the secrets! ;-)I think I might try it. This HTML isn't as hard as we sometimes think it is eh?
Nicole
Can you do a post on how you did your personal header with your blog name and the art?
Sure, Karen! That'll be a fun one.
Thanks for posting this tutorial.
I was able to get the background but I'm having problems with everything else. I'd like to have the print be the background and than a plain color for where I put my message and a plain color for my header. I feel like I folowed your directions but apparently I've did something wrong.
I did this on my other blog for practice. Thank you for any help.
Allison,
Thanks for the questions. I realized I left out one little thing for adding color using the html color codes which is why it didn't work. Put a # sign before the html number so it will look like this:
background-color: #FFFF99;
Of course put in whatever color code you want, that one up there is for a yellowish color. And don't forget the semi-colon at the end. I hope that solves your problem. Now I'm off to fix the instructions!
I finally got around to playing with my practice blog. Thank you! Now I need to decide what I want my other to look like and do the other tutorials you posted. Thanks again!
Hi me again! Do you know how to get the main wrapper and side wrapper together. I'd like to have a background and than where I post and the side bar to be one. Any suggestions? Thanks
Cocoa- I would like to be able to have the side bars and the main post with the same background, like on your blog.
Did I miss how to do that? I haven't went pass part 2 yet.
Thank you so much for this info! I changed my whole blog because of you, and really really love it now!
Thanks for these tutorials. I have had a lot of fun playing around with backgrounds and colors.
One question: with the scrapbook site that you linked to, the paper does not automatically tile. Thus, there is a disconnect on the page where the paper repeats itself. How did you fix it on your blog so that it is a continuous whole?
Thanks!
THANK YOU you have no idea how much I wanted to learn how to do that, and you explained it so well, I was able to make some changes to my blog :-)
I came across your blog today and found this tutorial, my luck day today. Congrats for your blog, it´s really nice, beautiful and helpful!
Marta
Brilliant, absolutely brilliant! And that was only referring to myself. For you, Genius will do.
I have an html question. I want columns on both sides of the main body of my family blog so I can put pictures of my children.grandchildren down the left side. How do you do this?
Thank you for this post! I realize you did this a while ago, and I had added a background to my blog, but now I want it white and I can't seem to get my previous background gone! any suggestions?
Post a Comment