Blogger Hack for your blog

Sunday, September 6, 2009

For enjoying your blogger and make it friendly for you, you can hack some code for your blogger blog's. And there are some trick for make your blog better than before.

 

  • The Title For SEO freindly
Find this code from your template  
<title><data:blog.pageTitle/></title>
and then replace that code with this  
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.pageTitle/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
 
  • Replace default atom with RSS
Ifyou want to replace your default atom with rss find this code

<b:includable id='feedLinksBody' var='links'>
<div class='feed-links'>
<data:feedLinksMsg/>
<b:loop values='data:links' var='f'>
<a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>
</b:loop>
</div>
</b:includable>

And replace that green code with this :
<a class='feed-link' expr:href='data:f.url + "?alt=rss"' type='application/rss+xml' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>

  • Print Your Article
For print your article from your blog, you can add this code in every page or every post.

<a href="javascript:print(document)">Print this page</a>
 
  • Place the icon before name of your comment
You can add the iconbefore name of comment. Find this code #comments-block .comment-author{ . And add with green code below, in your CSS code :

#comments-block .comment-author{ margin:.5em 0; padding-left:25px; background:#FFFFCC url("http://4.bp.blogspot.com/_C6KkooKXCEw/SJGzpDac4VI/AAAAAAAACGo/2L5Y5P_BDWU/s400/icon_comment.gif") no-repeat 3px .3em; color:#111}

There are some code for your blogger blog's, Let's Try it.

0 comments:

Post a Comment

 
 
Copyright © TipsBlogger