Blogger Hacks
March 15, 2010 by Ivan
Filed under Articles, Blogger Hacks, Hacks
Here you will find great blogger hacks which are useful to bloggers using the Blogger platform. Enjoy!
Expandable Posts or Read More Hack
Here is classic way of expanding posts which takes the reader to the post page upon clicking “Read more” link.
1) Login to blogger dashboard and go to Layout->Edit Html
2) Find </head >and add this code before it
<pre>
<b:if cond=’data:blog.pageType != “item”‘>
<script type=”text/javascript”>
var fade = false;
function showFull(id) {
var post = document.getElementById(id);
var spans = post.getElementsByTagName(’span’);
for (var i = 0; i &lt; spans.length; i++) {
if (spans[i].id == “fullpost”) {
if (fade) {
spans[i].style.background = peekaboo_bgcolor;
Effect.Appear(spans[i]);
} else spans[i].style.display = ‘inline’;
}
if (spans[i].id == “showlink”)
spans[i].style.display = ‘none’;
if (spans[i].id == “hidelink”)
spans[i].style.display = ‘inline’;
}
}
function hideFull(id) {
var post = document.getElementById(id);
var spans = post.getElementsByTagName(’span’);
for (var i = 0; i &lt; spans.length; i++) {
if (spans[i].id == “fullpost”) {
if (fade) {
spans[i].style.background = peekaboo_bgcolor;
Effect.Fade(spans[i]);
} else spans[i].style.display = ‘none’;
}
if (spans[i].id == “showlink”)
spans[i].style.display = ‘inline’;
if (spans[i].id == “hidelink”)
spans[i].style.display = ‘none’;
}
post.scrollIntoView(true);
}
function checkFull(id) {
var post = document.getElementById(id);
var spans = post.getElementsByTagName(’span’);
var found = 0;
for (var i = 0; i &lt; spans.length; i++) {
if (spans[i].id == “fullpost”) {
spans[i].style.display = ‘none’;
found = 1;
}
if ((spans[i].id == “showlink”) &amp;&amp; (found == 0))
spans[i].style.display = ‘none’;
}
}
</script>
</b:if>
</pre>
3) Find this div for the post-body and add the portion of code in red color.
<div class='post-body' expr:id='"post-" + data:post.id' > <b:if cond='data:blog.pageType == "item"'> <style>#fullpost{display:inline;}</style> <p><data:post.body/></p> <b:else/> <style>#fullpost{display:none;}</style> <p><data:post.body/></p> <span id='showlink'> <a expr:href='data:post.url'>Read More......</a> </span> <script type='text/javascript'> checkFull("post-" + "<data:post.id/>"); </script> </b:if> <div style='clear: both;'/> <!-- clear for photos floats --> </div>
4)Go to Settings->Formatting-> Post Template

In Post Template copy/paste these lines and save settings
Type your summary here
<span id=”fullpost”>
Type rest of the post here
</span>
5)If you create new post you will see area where you should type summary and where to type rest of post

Remove NavBar in Blogger
If you one of these who hate blogger navbar , you came to the right place , here I will show you how to remove it.
1) Login to blogger dashboard and go to Layout->Edit Html
2)Add the following CSS anywhere in your template between the <style> tags.
#navbar-iframe
{
height:0px; visibility:hidden; display:none;
}
Best of PC Hacks
- Best Free Antivirus Software
- Free Hacking Tools
- 42 Sites Where To Submit Your Tutorials
- Free Logo Generator
- How To Become The SYSTEM User In Windows XP
- Free Blackberry Software








Anup on Mon, 15th Mar 2010 4:24 am
Cool hacks :) Already used.
narutoCrash on Tue, 1st Jun 2010 8:30 pm
Ivan Nice Hacks.The Most I Like Is FakeVirus I Tried It On Myself But I Want To Know How To Send A Real Virus Too A Computer
minato on Sun, 18th Jul 2010 2:02 pm
hey i don’t find the line <div class='post-body' in my edit html page. i use the simple template which is there in template designer