How to add Page Number Navigation In Blogspot Blogger

  • Back up your template first
    Go to Template>Backup/Restore>Download full template
  • On your dashboard,
    Go to Template > Edit HTML > Check the 'Expand Widget Templates’
  • Press Ctrl + F to look for the following code ]]></b:skin>
  • Copy & Paste below code before code ]]></b:skin>


.showpageArea a {
text-decoration:underline;
}
.showpageNum a {
text-decoration:none;
border: 1px solid #cccccc;
margin:0 3px;
padding:3px;


}
.showpageNum a:hover {
border: 1px solid #cccccc;
background-color:#cccccc;
}
.showpagePoint {
color:#333;
text-decoration:none;
border: 1px solid #cccccc;
background: #cccccc;
margin:0 3px;
padding:3px;
}
.showpageOf {
text-decoration:none;
padding:3px;
margin: 0 3px 0 0;
}
.showpage a {
text-decoration:none;
border: 1px solid #cccccc;
padding:3px;
}
.showpage a:hover {
text-decoration:none;
}
.showpageNum a:link,.showpage a:link {
text-decoration:none;
color:#333333;
}



  • Next find </body> and copy & paste below code before code
<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://tools.adityawebs.com/javascript/blogger-page-nav-v2.js' type='text/javascript'/>
</b:if>


You can control the number for post per page by changing the number in var pageCount=
    Change the number of pages show in Navigation bar var displayPageNum=5

If You Like My This Post Then Please Comment Here

0 comments:

Post a Comment