hi all, today we are going to learn how to add page navigation bar with numbers for blogspot blogs,
i’m sure that most of you have a lot of posts and the default blogger way to navigate between new post and old post is boring. what if your visitors wants to read for your oldest posts?
should he keep clicking on “older posts”, No.
You should apply this hack for your template, it’s one of the most useful blogger tricks ever.
so lets see how to do it.
Caution : Please backup your template (Download Full Template) Before making any changes.
Step 1: Adding The CSS Code.
Log into your blogger account and go to,Dashboard >> Layout >> Edit html.
And find the following code.
And just before it Add the next code
Step 2: Adding The Java Code.
Find the next code Or some similar codeAnd After the Tag add the next code.
And Click “save template”
In the above code you may only edit four lines to customize your navigation bar.
In this code Number 10 control the number for posts per page, you can change it to choose how many posts per page you want to display.
Note : This Number value should be the same With in your blogger account settings
The settings can be found by going to Dashboard >> Setting >> Formatting >> Show >> 10 posts
Number 6 here control the number of pages that will be shown in the navigation bar.
var upPageWord ='Previous'; var downPageWord ='Next';if you want to change the language or just change it to any thing, please change Previous for example to Older
Final Step
This blogger trick my cause some problems if you use labels in your posts and to solve this problems you have to apply the next step for your template.1. Add Label Gadget To Your Template by going to Layout >> page elements >> Add Gadget >> Select Labels and add it to your template.
2. go to, Dashboard >> Layout >> Edit html.
And find the following code.
And replace it with the following code.
And Click “save template”
We are done.
0 Responses to Adding Numbered Page Navigation Bar For Blogger