Customizing Blogger/Blogspot - Changing the Banner

OK. Now my blog really looks like a canned template. Let's try to at least change the banner from the plain colour to the awesome stock photo I downloaded from Stock Exchange. So follow along as I think out loud:
  • First, I need to crop the photo to the dimensions I want: 1000px by 300px. So I did that with my photo editor.
  • Now, I need a place to host my photo. I'll use the same place where blogger puts all my photos for my blog posts - Picasa Web.
  • Once in Picasa, I add the photo to the e.Guidebook album. Once uploaded, I view it and right click on the photo to obtain the URL for the photo.

Once you have that, simply replace the Blog Header section:
/* Blog Header
----------------------------------------------- */
#header-wrapper {
background:$titleBgColor;
margin-top:0px;
margin-$endSide:0;
margin-bottom:0;
margin-$startSide:0;
padding-top:0;
padding-$endSide:0;
padding-bottom:0;
padding-$startSide:0;
color:$titleTextColor;

}
#header {
padding:0; margin: 0;
height: 300px; width: 1000px;
background: url('PUT YOUR IMAGE URL HERE') no-repeat left top;
}
#header h1 {
margin:0;
padding:90px 500px 30px 30px;
line-height:1.2em;
font: $pageTitleFont;
}
#header a,
#header a:visited {
text-decoration:none;
color: $titleTextColor;
}
#header .description {
margin:0;
padding: 5px 500px 10px 30px;
line-height:1.5em;
font: $descriptionFont;
}


Then we need to change the color of the title. This is stored in a variable called titleTextColor. I replaced it with a dark gray but you can choose your own color:

variable name="titleTextColor" description="Blog Title Color" type="color"
default="#fff" value="#333333"

Customizing Blogger/Blogspot - Your Own Template

Now that we know what you want your blog to look like, we can start working on the Blogger template. For the benefit of readers just picking up on this series, we are trying to personalize the look of the e.Guidebook blog. Here's a before/after visualization:



To make things easier for myself, I will modify an existing template rather than creating one from scratch. From the Layout tab, click on Pick New Template. Choose a template that matches your desired layout most closely. For me, I'm going with Minima which looks like this:



Now, the dimensions of this layout isn't quite what I visualized. I wanted a center panel that was 1000 pixels (px) wide. Minima is 740px. So let's change that.
  • From the Layout tab, click on Edit HTML. Yes. I am going to edit the code. Don't be scared. If anything goes wrong, I can always go back and pick Minima and join the all-look-same crowd.
  • Now, I'll copy all the code in the text box and paste it into Notepad so I have a working copy of the code. Need to remember to save this file frequently.
  • Oh good, the code looks very tidy. I like Minima.
  • Now, to change the width to 1000px. I change the part of the code called #outer-wrapper:
#outer-wrapper {
width:740px;
width:1000px;
margin:0 auto;
text-align:$startSide;
font: $bodyFont;
}


Hmm... it looks terrible. Let's widen the other 2 panels as well. I want the blog content panel to be 700px wide and the widgets panel to be 300px. Change the widths of the following sections of code:
#main-wrap1 {
width:700px;
float:$startSide;
background:$mainBgColor
url("http://www1.blogblog.com/rounders/corners_main_bot.gif") no-repeat

...
#sidebar-wrap {
width:300px;
float:$endSide;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}



OK, now the panels look like they are the right widths, but the blog content isn't using the full width. There are 3 widths to change to fix this. I will use a blog content width of 680px so that there's a 20px margin on the right edge.
#main {
background:url("http://www.blogblog.com/rounders/rails_main.gif")
repeat-y $startSide;
padding:0;
width:680px;
}

.main .widget {
margin-top: 4px;
width: 680px;
padding: 0 13px;
}

.main .Blog {
margin: 0;
padding: 0;
width: 680px;
}



Much better. Let's now get rid of all those rounded corners. Those are actually images strategically positioned. So just look search the code for all instances of ".gif" and you can easily find all the corners. There is a vertical line going down the main section. Those are called rails and they are images too. So as you go through looking for all the GIFs, you can start removing anything that looks like corners and rails. Here's what I found:

#main-wrap1 {
width:700px;
float:$startSide;
background:$mainBgColor url("http://www1.blogblog.com/rounders/corners_main_bot.gif")
no-repeat $startSide bottom
;
margin:15px 0 0;
padding:0 0 10px;
color:$mainTextColor;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

#main-wrap2 {
float:$startSide;
width:100%;
background:url("http://www1.blogblog.com/rounders/corners_main_top.gif")
no-repeat $startSide top;

padding:10px 0 0;
}
#main {
background:url("http://www.blogblog.com/rounders/rails_main.gif")
repeat-y $startSide;

padding:0;
width:680px;
}

#header-wrapper {
background:$titleBgColor url("http://www2.blogblog.com/rounders/corners_cap_top.gif")
no-repeat $startSide top
;
margin-top:22px;
margin-$endSide:0;
margin-bottom:0;
margin-$startSide:0;
padding-top:8px;
padding-$endSide:0;
padding-bottom:0;
padding-$startSide:0;
color:$titleTextColor;
}

#header {
background:url("http://www.blogblog.com/rounders/corners_cap_bot.gif")
no-repeat $startSide bottom;

padding:0 15px 8px;
}

#sidebartop-wrap {
background:$topSidebarBgColor url("http://www.blogblog.com/rounders/corners_prof_bot.gif")
no-repeat $startSide bottom
;
margin:0px 0px 15px;
padding:0px 0px 10px;
color:$topSidebarTextColor;
}

#sidebartop-wrap2 {
background:url("http://www2.blogblog.com/rounders/corners_prof_top.gif")
no-repeat $startSide top;

padding: 10px 0 0;
margin:0;
border-width:0;
}

#sidebarbottom-wrap1 {
background:$mainBgColor url("http://www.blogblog.com/rounders/corners_side_top.gif")
no-repeat $startSide top
;
margin:0 0 15px;
padding:10px 0 0;
color: $mainTextColor;
}

#sidebarbottom-wrap2 {
background:url("http://www1.blogblog.com/rounders/corners_side_bot.gif")
no-repeat $startSide bottom;

padding:0 0 8px;
}

#footer-wrap2 {
background:$titleBgColor url("http://www2.blogblog.com/rounders/corners_cap_top.gif")
no-repeat $startSide top
;
color:$titleTextColor;
}

#footer {
background:url("http://www.blogblog.com/rounders/corners_cap_bot.gif")
no-repeat $startSide bottom;

padding:8px 15px;
}





Voila! That's good enough for today. Our dimensions are ok save for the header height. We'll work on the header in the next blog.

Customizing Blogger/Blogspot - Introduction & Visualizing

Tonnes of blogs look the same. At time of writing, even this blog suffers from the "all-look-same" problem that comes with choosing from a small set of templates. I want to personalize the look of my blog and I'd love to take you along for the journey so you can do it too.

Recently, I've been experimenting with several different blog engines for my church's use. Along the way, I noticed that Blogger (or Blogspot), is now offering a very flexible way to customize said look & feel.

So from a visual perspective, here's what our blog looks like now (left) and my vision of how I want it to look like (right):


Therein lies the first step to customizing. Have a vision for how you would like your blog to look like. Design a layout you like respecting the fact that you still must have an area for blog posts and an area for widgets. Feel free to draw inspiration from other sites. Take a peek inside my thought process:
  • The blog area is way too narrow - I'd like to widen it. I don't want to use the full width of the page because I like the look of "side curtains". So maybe I could expand the content panel from 765 pixels to 1000 pixels and give most of that room to the blog posts.
  • My wife likes blue. A litte bit of a cold colour but tranquil. I think I will use different shades of blue for my site. And I'll use black for the side curtains - makes the page "pop" more.
  • I'd like to have a big banner photo at the top of the page. If only I had some photography skills like Lloyd at Night & Day or Laura Hana, I could take my own photo. Oooh! found a nice free stock photo at Stock Exchange. And it's mainly blue which goes well with my colour scheme.
  • Hmm, I think a 2 column layout like the way I have it now is ok. I still want all the posts to be on the left and all the widgets on the right.
  • Right, now let me mock this up on Corel Photo-Paint (or CorelDraw, or Adobe Illustrator, or Adobe Photoshop, or whatever design tools you prefer). I grew up on Photo-Paint so I'm sticking with what's familiar.
  • Oh yes, I'd like to get rid of that navigation bar/tool bar, if possible.
So go ahead and try it. If you like, post your designs somewhere (flickr, picasa, etc..) and share it with us.