Your Sidebar, Your Friend
Apparently some of the mensch have been wondering how to add delicious content to their blog sidebar. The sidebar is that thing at the side of your blog, where you can put things that you want to be visible on all of your pages.
I’m going to describe how to put your New Years Resolutions into your sidebar. I broke it down into many steps, but it’s really quite simple.
1. Log into blogger. Normally you go straight to “Posting/Create” in order to serve us up some of your fascinating observations on life. This time, however…
2. Click on the Template tag. Hooray! There’s a whole page of Blogger code there, similar to HTML. You can just look at it as unintelligible crap if you like.
3. Copy and past the entire contents of unintelligible crap somewhere safe, such as a text document on your desktop. That way, you can always undo whatever you changed.
4. Back in your browser, open to the Template tag, look for some text similar the following:
<!– Begin #sidebar –>
<!– Sidebar –>
<div id=”sidebar”>
The code following this bit determines what goes in the sidebar.
5. Find something that already exists in your sidebar. For me, it was:
<h2 class=”sidebar-title”>Previous Posts</h2>
Even if you don’t know HTML, you can imagine how this corresponds to the header Previous Posts that is already in your sidebar. Your text may not be the same as mine.
For the HTML-interested, the <h2> tag says to treat the following text as a secondary header and </h2> indicates the end of this text. The class=”XXX” is there to give the web browser hints about the font and colour. Since this is header text, it is automatically given a line to itself.
5. Now here’s one of the best secrets of a software developer: find code that works and copy it. I suggest copy and pasting the text that you found earlier, changing “Previous Posts” to “New Years Resolutions!”.
6. Click on the Preview button. A new window pops up with your changes. Do you see the new header? Hooray for you! But I bet you’d like to see some stuff under the header as well.
7. Back in the template window, put the following text underneath the New Years Resolutions:
<ul><li>Eat more fast food.</li>
<li>Use a daily moisturizer.</li>
<li>Read more books.</li></ul>
Changing the text, of course.
For the HTML-interested, everything between <ul> and </ul> is considered part of an unordered list. The individual items in the list are separated using the <li> tags. Try changing the two ul to ol to get an ORDERED (i.e. numbered) list.
8. Click Preview and verify that everything is in order — I wasn’t too careful to specify exactly where to place these statements. You can figure it out by changing in the Template window and watching the results in Preview.
9. When everything is to your satisfaction, click on the “Save Template Changes” and “Republish”. Everyone wins!
GKarlsen
Holy Smokes!!!
Excellent advice, TF. Stealing code is something not enough people do – why reinvent something that has already been done? So my advice is this: If you like the look of someone else’s blog, select “View Source”, and copy/paste their html into your Template. Works like a charm.
Since this is the best forum for it, I will add some advanced blogger tips:
1) You can remove that annoying search bar at the top of your blog: From your blog-edit page, go to “Templates” and at the top there is a drop-down list, which you can change to “Change the Blogger NavBar” = “Off”. Note: it only lets you turn it off once you have posted a lot – so if it doesn’t let you, then you need to write more.
2) You can change the date format of comments. The default is with just time and not date: and this is silly as you don’t know what day the comment came in on. So from your blog-edit page, go to “Settings”, “Formatting”, and change the “Timestamp Format” to something like “1/18/2005 10:00:36 AM”.
Speaking of sidebars, yours is pushed all the way to the bottom of the page again?
Thank you SnowyCat for that tidbit on the date…I need to do that as I have always found that quite annoying.
Hi Katrina – I think that I can answer your query about the sidebar appearing at the bottom on TinFoiled’s behalf…
This occurs because Internet Explorer is a lousy browser (I confirmed it happens to me when viewing TF in IE too). If TinFoiled was here to speak rather than sleeping, he would suggest that you too switch to Firefox (see his earlier rant here).
User testimonial: I switched and haven’t looked back!
Here is a photo of my chocolate bar that I was given for switching.
thanks, TinFoiled
p.s. It was delicious!
Apparently, I’m not posting enough — I still need to have the navbar on top!
Ahh yes, the foxwhatever it is…I have read of this when Tin Foiled first brought it up, but I have no desire to switch browsers…especially not when I am still taking my online Masters program…can not risk any possible bad things happening to my internet.
You will not refer to it as foxwhatever-it-is. Honestly, you’re only hurting yourself. It takes seconds to install, and it doesn’t touch your precious Internet Explorer.
Oh, I’m so mad! Not at you though.
I’m with Katrina. It’s annoying to have everything on the bottom of the page and since most people are too lazy to change to the little red beast, it’s not very friendly…
You would be super proud of me. Not only did I post something in my sidebar, I did it by flagrantly stealing your source code!!!! Yay, hacking!!! Though I can’t figure out what the links are stepped… The downside of stealing.