Menu
show-notice
hide-notice

Awesome Page Navigation for Blogger

on 10 November 2011

Page Navigation is Awesome widget, and that will replace older link, home link and newer link with number mod style in home page and post page. Have you seen default blogger older, home and newer links are boring feel.You can get page navigation in almost every website which give you tutorial about blogging. But all the sites confer the same style page navigation, but, here i would like to share awesome style navigation with CSS. Just adding CSS and HTML code in template.

How To Add Awesome Page Navigation in blogger

1. Go to Design > Edit HTML > Check mark Expand Widget Templates and Find Below code.
<b:includable id='mobile-index-post' var='post'>
2. Paste below code before the above line.
<b:includable id='page-navi'>
<div class='pagenavi'>
<script type='text/javascript'>
var pageNaviConf = {
perPage: 7,
numPages: 5,
firstText: &quot;First&quot;,
lastText: &quot;Last&quot;,
nextText: &quot;&#187;&quot;,
prevText: &quot;&#171;&quot;
}</script>
<script src='http://awesome-navigation.googlecode.com/files/onlinetrick.js' type='text/javascript'/>
<div class='clear'/>
</div>
</b:includable>
Customize
perpage : How many posts per page you want to display. You can change 7 (in blue color)
numpage : How many number will show in your page Navigation. You can change 5 (in red color)
3. Once again find the below code.
<b:include name='nextprev'/>
4. Replace above code with following code.
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:include name='page-navi'/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;archive&quot;'>
<b:include name='page-navi'/>
</b:if>
<b:else/>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:include name='nextprev'/>
</b:if>
</b:if>
5. Now the CSS. Find ]]></b:skin> and copy the below code and paste before the 
]]></b:skin>.
#blog-pager, .pagenavi {
     clear: both;
     text-align: center;
     margin: 30px auto 10px;
}
#blog-pager a, .pagenavi span, .pagenavi a {
     margin: 0 5px 0 0;
     padding: 2px 10px 3px;
     text-decoration: none;
     color: #fff;
     background: #e06666;
     -moz-border-radius: 2px;
     -khtml-border-radius: 2px;
     -webkit-border-radius: 2px;
     border-radius: 2px;
     -webkit-transition: all .3s ease-in;
     -moz-transition: all .3s ease-in;
     -o-transition: all .3s ease-in;
     transition: all .3s ease-in;
}
#blog-pager a:visited, .pagenavi a:visited {
     color: #fff;
}
#blog-pager a:hover, .pagenavi a:hover {
     color: #fff;
     text-decoration: none;
     background: #000;
}
#blog-pager-older-link, #blog-pager-newer-link {
     float: none;
}
.pagenavi .current {
     color: #fff;
     text-decoration: none;
     background: #000;
}
.pagenavi .pages, .pagenavi .current {
     font-weight: bold;
}
.pagenavi .pages {
     color: #fff;
     background: #e06666;
}
6. huhh!!!!. Done, click SAVE TEMPLATE and If you have any doubt, drop your comment below.

SHARE

44 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks for sharing =)

    ReplyDelete
  3. hi, my template has image slider at the home page and when page navigation is showing only on the home page, not on every page, i mean after clicking the next page button of page navigation, it disappears in the next page,,, can u help for this problem,,, thanks in advance...

    ReplyDelete
  4. Hello!

    My site - http://www.mypress-release.biz/ - has 1850 articles, but navigator shows only 500 ( 50 pages x 10 articles on each = 500 articles)?

    Pls, help me. What can I do?

    Thank you!

    ReplyDelete
    Replies
    1. Hi, am having same problem also.

      How were you able to solve yours?

      Your reply will be appreciated.

      Delete
  5. Thanks, it's good!

    ReplyDelete
  6. Really nice post sir,implemented on my blog
    www.jobsonchoice.com

    ReplyDelete
  7. Its Really Awesome Tnx Bro...

    ReplyDelete
  8. thanks for the simple technique... keep posting. thanks alot. free website ideas

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. what if i don't have those codes described in #1 and #3?? :(

    ReplyDelete
    Replies
    1. Your template is not followed by the structure of blogger template, so you cannot able to find those codes..

      Delete
  11. Thanks, its awesome!:)

    ReplyDelete
  12. Good and work in my blog, thanks friends i used it.

    ReplyDelete
  13. thank you for a nice post

    ReplyDelete
  14. thanks i use on my site.. http://nicezones.blogspot.com

    ReplyDelete
  15. Well done, I'm very pleased with the result, good job.

    ReplyDelete
  16. AnonymousJuly 23, 2012

    IS possible to hide it from the main page? i want the nav only on my labels.

    ReplyDelete
  17. I loved as much as you'll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this increase.
    Also visit my weblog Visit Website

    ReplyDelete
  18. you are a very intelligent and kind person. Thank you for taking the time to making others happy without asking for anything in return. This really helped my site. Thank you kindly.

    I am curious about one thing, is there any way of reversing the page navigation numbers so that the earliest post is number one?

    ReplyDelete
  19. thank you very much......... i hope you should create more developments for blogger. Thank your.......

    ReplyDelete
  20. thank you very much......... i hope you should create more developments for blogger. Thank your.......

    ReplyDelete
  21. i has try it in my blog but not working..

    ReplyDelete
  22. you are awesome dude.............

    ReplyDelete
  23. Sameer babuJanuary 25, 2013

    This working well in my blog.
    You are always Making awesome on your blog....Thank

    ReplyDelete
  24. Very Nice..
    Using at my site now! Thanks admin :)

    ReplyDelete
  25. This worked great, just had to edit the color code and now it looks great on my blog. Thank you.

    ReplyDelete
  26. well, thanks for share

    ReplyDelete
  27. hi is it possible for add some coding so that your numbered page navi coding applies too when viewing the blog using label? cause if i check my blog using label, page 1 shows 20 posts rather than the value assigned (which i assigned 5 posts per page). and page 2 to 4 will be a repeat of the 5th post to 20th post respectively. thank you!

    ReplyDelete
  28. woow,,its a perfect trick, thanks

    ReplyDelete
  29. Thank you .....This is the right code for page number which will work for labels as well.

    ReplyDelete
  30. something happend to mine see its not coming
    desiheroines.blogspot.in please help me

    ReplyDelete
    Replies
    1. Found that you missed 3rd and 4th step, follow all the step and try again.

      Delete
  31. thank you very much :))

    ReplyDelete
  32. Hello!

    My site - http://www.arabmoviez.org/ - has 1850 articles, but navigator shows only 500 ( 50 pages x 10 articles on each = 500 articles)?

    Pls, help me. What can I do?

    Thank you!

    ReplyDelete
  33. Thanks for your sharing. It helps very much.

    ReplyDelete
  34. Great work. Thank you for this wonderful tutorial.
    But I am wondering why the Page Navigation only works on some pages. If I click on my labels it works: http://www.chamy.at/search/label/Event
    On my home page or in the individual months not: http://www.chamy.at/
    Can you please help me?

    Thank you and best regards from Austria.
    mail@chamy.at

    ReplyDelete
  35. Thanks! This is the first one that has worked for me.

    ReplyDelete

Important -Comments with Links will be deleted immediately upon our review and If you are asking a question click the 'Subscribe By Mail' link below the comment form to be notified of replies.