Numbered Page Navigation Hack for Blogger (word press style). Muhammad Rias of Techie Blogger had already developed a page navigation system for blogger and Abu Farhan has fixed some bugs. Awesome trick for blogger. I used Aneesh of Blogger Plugings Google hosted JavaScript file of page navigation hack.
How to add Numbered Page Navigation Hack For Blogger
1. Go to your Blogger Dashboard > Layout > Edit HTML
2. And search this piece of code: ]]></b:skin> and paste the following code right after it: ( This is the css part of page navigation hack customized by me, You can modify it according to your need )
<style>
.showpageArea a {
text-decoration:underline;
background:#fff;
text-align:center;
}
.showpageNum a {
text-decoration:
none;text-align:center;
border:1px solid #ccc;
margin:0 3px;
padding:.3em .5em;
background:#fff;
}
.showpageNum a:hover {
border:1px solid #ccc;
background-color:#ccc;
}
.showpagePoint {
color:#333;
text-decoration:none;
border:1px solid #ccc;
background:#ccc;
margin:0 3px;
padding:.3em .5em;
text-align:center;
}
.showpageOf {
text-decoration:none;
padding:3px;
margin:0 3px 0 0;
}
.showpage a {
text-decoration:none;
text-align:center;
border:1px solid #ccc;
padding:.3em .5em;
}
.showpage a:hover {
text-decoration:none;
color:#fff;
background:#5c7b90;
}
</style>
3. Now search this piece of code: </body> and paste the following code right before it:
<b:if cond='data:blog.pageType != "item"'>
<script type='text/javascript'>
var pageCount=5;
var displayPageNum=5;
var upPageWord ='Previous';
var downPageWord ='Next';
</script>
<script src='http://blogergadgets.googlecode.com/files/blogger-page-navi.v1.js' type='text/javascript'/>
</b:if>
customizable parameters in this code
var pageCount=5; ---> number of posts that would be displayed per page.
var displayPageNum=5; ---> number of additional page navigation numbers that will be displayed on the page.
var upPageWord ='Previous'; ---> previous page
var downPageWord ='Next'; ---> next page
0 comments:
Post a Comment