• RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Increase Website And Blog Traffic:latest article for Increasing Blog and website Traffic free gide.....
  • Create and Upload Site Map to Google:Google is fist largest Search Engine by upploading SITE MAP Google Easily Search Links from Ur site in Searching.......
  • Fix WEB SITE Errors:Google and other search engines always take those site in there fist page in searching which ha too less web Errors...
  • Top 20 Search Engine:Submit Ur site to top 20 Search Engines to Increasing Ur Site Traffic and making money top search engines like as Google, Yahoo, Ask, AOl, MSN...
  • Top Social Sites:Top 100 Social sites which real help U make a Affliate Marketer and in Pormoting ur Producdts...

New Posts

How to Add Numbered Page Navigation Widget for Blogger

Posted by Mohsin On 4/03/2014 10:39:00 AM 28 comments

In Blogger, we have the option to set the number of posts we want to display per page by going to the Settings menu > Posts and comments > Show at most ? posts. Once the number of total posts in our blog exceeds this number, we will see "Older Posts" and "Newer Posts" navigation links in our home page and archive pages footer as Blogger doesn't have any built-in function on page numbering. But page numbers instead of older and newer posts links could help our blog visitors to navigate quicker (jump from one page to another page or click on a specific page) and know the total number of posts published. Here's a tutorial on how to add numbered page navigation using Javascript to a Blogger/ blogspot blog. You can select any one of 3 different styles that I have mentioned below.

numbered page navigation widget

Adding Numbered Page Navigation to Blogger

You can add this widget in just two steps.
1. Adding The CSS.
2. Adding The Script.

Now let's see how to add the CSS style for page navigation.

1. Adding The CSS

Step 1. Go to Blogger Dashboard > Template > click on the Edit HTML button:

blogger template html

Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger search box. Type or paste ]]></b:skin> tag inside the search box and hit Enter to find it.

Step 3. Now choose one of the following numbered page navigation styles and copy the code just below it. Just above ]]></b:skin> paste the code of the style that you want to use:

Style 1

numbered page navigation style 1
.page-navigation{clear:both;margin:30px auto;text-align:center;}
.page-navigation span,.page-navigation a{padding: 3px 7px;margin-right:5px;background:#E9E9E9;color: #888;border:1px solid #E9E9E9;}
.page-navigation a:hover,.page-navigation .current{background:#CECECE;text-decoration:none;color: #000;}
.page-navigation .pages,.page-navigation .current{font-weight:bold;color: #888;}
.page-navigation .pages{border:none;}

Style 2:

numbered page navigation style 2
.page-navigation{clear:both;margin:30px auto;text-align:center;}
.page-navigation span,.page-navigation a{padding: 5px 10px;margin-right:5px; color: #F4F4F4; background-color:#404042;-webkit-box-shadow: 0px 5px 3px -1px rgba(50, 50, 50, 0.53);-moz-box-shadow:0px 5px 3px -1px rgba(50, 50, 50, 0.53);box-shadow: 0px 5px 3px -1px rgba(50, 50, 50, 0.53);}
.page-navigation a:hover,.page-navigation .current{background:#EC8D04;text-decoration:none;color: #fff;}
.page-navigation .pages,.page-navigation .current{font-weight:bold;color: #fff;-webkit-box-shadow: inset 0px -1px 2px 0px rgba(50, 50, 50, 0.69);-moz-box-shadow:inset 0px -1px 2px 0px rgba(50, 50, 50, 0.69);box-shadow:inset 0px -1px 2px 0px rgba(50, 50, 50, 0.69);}
.page-navigation .pages{border:none;-webkit-box-shadow: 0px 5px 3px -1px rgba(50, 50, 50, 0.53);-moz-box-shadow:0px 5px 3px -1px rgba(50, 50, 50, 0.53);box-shadow: 0px 5px 3px -1px rgba(50, 50, 50, 0.53);}

Style 3:

numbered page navigation style 3
.page-navigation{clear:both;margin:30px auto;text-align:center;font-size: 11px;background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #000000),color-stop(1, #292929));background-image: -o-linear-gradient(top, #000000 0%, #292929 100%);background-image: -moz-linear-gradient(top, #000000 0%, #292929 100%);background-image: -webkit-linear-gradient(top, #000000 0%, #292929 100%);background-image: -ms-linear-gradient(top, #000000 0%, #292929 100%);background-image: linear-gradient(to top, #000000 0%, #292929 100%); padding: 6px;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;}
.page-navigation span,.page-navigation a{padding: 3px 10px;margin-right:5px; color: #fff;}
.page-navigation a:hover,.page-navigation .current{background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #59A2CF),color-stop(1, #D9EAFF));background-image: -o-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -moz-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -webkit-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -ms-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: linear-gradient(to top, #59A2CF 0%, #D9EAFF 100%);text-decoration: none;color: #000;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;}
.page-navigation .pages{border:none;background: none;}

2. Adding The Script


Step 4. Now find (CTRL + F) this line:
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
Step 5. Add the following script just below it:
<b:includable id='page-navi'>
<div class='page-navigation'>
<script type='text/javascript'>
var pgNavigConf = {
perPage: 7,
numPages: 6,
firstText: &quot;First&quot;,
lastText: &quot;Last&quot;,
nextText: &quot;Next&quot;,
prevText: &quot;Prev&quot;
}
</script>
<script src='http://helplogger.googlecode.com/svn/trunk/page-navigation.js' type='text/javascript'/>
<div class='clear'/>
</div>
</b:includable>
Step 6. Now we need to put the page navigation where it has to be shown (posts footer). Find the code below (if you can't find it, try to find only the first line):
<!-- navigation -->
<b:include name='nextprev'/>
Step 7. Replace it with this one:
<b:if cond='data:blog.pageType == "index"'>
<b:include name='page-navi' />
<b:else/>
<b:if cond='data:blog.pageType == "archive"'>
<b:include name='page-navi' />
</b:if>
</b:if>
If you can't find the old page navigation code, then find this section of code:
<b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
...
<b:includable id='main' var='top'>
...
</b:includable>
</b:widget>
</b:section>
Insert this code immediately above the </b:includable> tag:
<b:if cond='data:blog.pageType == "index"'>
<b:include name='page-navi' />
<b:else/>
<b:if cond='data:blog.pageType == "archive"'>
<b:include name='page-navi' />
</b:if>
</b:if>

Configuration

After installing, you might want to change some default settings. All the settings are in the script of step 5 above:
var pgNavigConf = {
perPage: 7,
numPages: 6,
firstText: "First",
lastText: "Last",
nextText: "Next",
prevText: "Prev"
}
- perPage: number of posts are shown in each page (7)
- numPages: number of pages are shown in page navigation (6)
- you can change the text by replacing the "First", "Last", "Next" and "Prev" texts.

Step 8. Click on the Save Template button and that's it! Enjoy!

28 comments:

I really appreciate you for all the valuable information that you are providing us through your blog.
We're a California web development company with a lot to offer! Web design, website development, SEO, brand & internet marketing. Call at 408-314-4519.

Website Development Company in California

I was looking for pagination for blogger and this tutorial article is good for me. I have one question to you. Why you guys accept this type spammy comments in your blog? I checked couple of pages and I saw most of the comments are just spams. Being a new reader of your blog I hope you would take care of this now onwards.

Anyway thanks for sharing the pagination solution.

linux corporate Training in chennai We provides excellent training on Linux course. We not only teach you the technologies but also share our real time implementation to gain practical knowledge on subject.
view more:
http://www.linux-trainingchennai.in/corporate-training.html

Bugzilla Training in Chennai provided by Software Testing HP Certified Experts. We are the Best Bugzilla Training Institute in Chennai.Bugzilla Training Coaching Center.

http://www.thinkittraining.in/Bugzilla

Get Jira Training in Chennai with Think IT. We are Best Jira Training Institute in Chennai. Our Jira Training Center is filled with experts.


Click Here

ETL Testing Training in Chennai provided by real time Top ETL Testing Professionals. We are the Best ETL Testing Training Institute in Chennai & Coaching
<a href="http://www.softwaretestingchennai.in/courses/etl-testing-training-in-chennai/></a>

AB Inito Testing Training in Chennai provided by Experts. We are the Best AB Inito Testing Training Institute in Chennai. Best AB Inito Testing Center

Best SALESFORCE and SALESFORCE Training in Chennai. Recommended as Best SALESFORCE Training Institute in Chennai. Call (8754597596) for Course & Placement details
<a href="http://www.peridotsystems.in/salesforce-training-in-chennai.php></a>

Salesforce Training in Chennai with top MNC experts. We are Best Salesforce.com Training Institute in Chennai. Admin Training Chennai
<a href="http://www.peridotsystems.in/salesforce-training-in-chennai.php></a>

Best SALESFORCE and SALESFORCE Training in Chennai by Peridot systems. Recommended as Best SALESFORCE Training Institute in Chennai. Call (8754597596) for Course & Placement details
<a href="http://www.salesforcetrainingexpert.in/></a>

Learn Cloud Computing training in Chennai with Peridot Systems. We offers Best Cloud Computing Training in Chennai
<a href="http://www.salesforcetrainingexpert.in/cloud-computing-training-in-chennai/></a>

veritas online training in chennai by experts.learv veritas course from online from any where in the world.we are the best veritas online training institutes in chennai
<a href="http://www.veritastraining.in/online-training.html></a>

VERITAS Training is a leading IT training Centre providing full-suite of technological training & placement services for Fresher's seeking a new career & professionals looking for career advancement.
<a href="http://www.veritastraining.in/about.html></a>

Best ORACLE SQL Training in Chennai. Get Trained in the Best Training Institute in Chennai. Call 8754597596 for Course. 100% job placement
<a href="http://www.oraclesqltraining.in/>Oracle Training in Chennai</a>

Best ORACLE SQL Training in Chennai. Get Trained in the Best Training Institute in Chennai. Call 8754597596 for Course. 100% job placement
<a href="http://www.oraclesqltraining.in/index.html>Oracle Training in Chennai</a>

Join AttendaSoft - No 1 Digital Marketing Training institute in Chennai. Call (8754597596) for details about Digital Marketing Training in Chennai. 100% Placement


Digital Marketing Training in Chennai

Learn SMO Training in Chennai with Experts. We are Best SMO Training Institute in Chennai. SMO Course Training Center in Chennai with real time projects

SMO Training in Chennai

Tableau training in chennai from the team of data warehousing experts.Learn tableau course in chennai from informatica training with 100% job placement.
visit our link for more details:

Tableau Training in Chennai

Informatica Training in Chennai with real-time corporate professionals. We are providing practical oriented best Informatica training institute in Chennai.
visit our link for more details:

Informatica Training in Chennai

BestCorporate Training in Chennai India from SharepointTraining. Call us at 8754597596 for your corporate training needs..
visit our link for more details:

Sharepoint Corporate Training in Chennai

Best online Microsoft Sharepoint Training inUSA,UK,Australia,England,Germany|online Microsoft Sharepoint Training institute in Chennai..
visit our link for more details:

Online Sharepoint Training in Chennai

Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care.As always, we appreciate your confidence and trust in us...!!! SAP Training in Chennai


It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command .

Branding Services in Chennai

Great information shared in this blog. Helps in gaining concepts about new information and concepts.Awsome information provided.Very useful for the beginners.
SEO Training in Chennai

very useful information provided in this blog. concepts were explained in a detailed manner. Keep giving these types of information.
SEO Training in Chennai

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
seo company in india
Digital Marketing Company in india

am expecting more interesting topics from you. And this was nice content and definitely it will be useful for

many people.
iOS Training in Chennai
Android Training in Chennai
php Training in Chennai

Post a Comment

All types of Comments are welcome