New Blogger Template - The Hobbit



Last week I discovered a very beautiful webdesign, and I decided to port it to a Blogger Template.

Get it now!


If you want to discuss this template, please visit the Beautiful Beta Forum.




Playing with the Feed Links



Now and then one of your questions triggers my own curiousity. Shrish asked how to hide the Feed Link at the bottom of the frontpage, while keeping the Feed Link at each postpage. And how to change the text of the link. Well, here is how it is done. A new hack.

Step 1: Backup your template.
Better be safe than sorry.

Step 2: Edit you template
Open your template in HTML-mode, and search for the includable with the id feedLinksBody. You have to add some lines of code to it to make the hack work. Below, you will find the code of the includable, the new lines are marked in red.








Adding these 2 lines of code makes the Feed Link only show up on an Item Page, and not on the Main Page or an Archive Page.

If you want to change the text of the Feed Link from "Subscribe to:" into something else, you have to replace with your own text.
The same can be done with the "Post Comments" text, and with the "(Atom)" text.
Just replace and respectively with your own text (or remove them completely).




Adding a favicon to your blog



Old stuff, and explained by many excellent bloggers and hackers, but usefull all the same. How to add a small icon to your weblog, that shows up in your browsers favorites?
Well, that little thingy is called a favicon in webspeak. And this is how you add it to your blog.

First, create a icon using a program such as the freeware version of IconArt. Upload this file to the web.

Then, edit your blog template in html-mode, and add the following lines of code to the head of your template, just below the -tag for example.






If you have already a link in your favorites-bar to your blog, in IE you will probably NOT see the icon right after adding it to your blog. You will have to delete the link from your favorites, empty your browser's cache, close your browser, start it again and add the link again to make it show up in IE.




Displaying code inside a post



In my posts I have put some code-snippets. I got some questions on how I did this. Well, to be honest, it is very easy.
I am using the

-tag inside my post. Anything that is put between a 
 and a 
-tag is handled by your browser as pre-formatted, and your browser leaves it as it is. You can add some styling to it inline, such as
, or you can add a class definition to your template skin.
If you want to display html-code inside your post, be aware that you have to replace every < by <, and every > by >.