In this article we will show you how to add numeric pagination in your WordPress theme. The goal is to replace the default Older and Newer pagination links at the bottom of archive pages with easy to navigate page numbers. There are two methods to adding numeric pagination in your WordPress theme.
- How To Add Numbered Page Navigation Widget For Blogger Profile
- How To Add Numbered Page Navigation Widget For Blogger Free
Widgets are very powerful and are extremely easy to use. However their usage is limited to the widget ready areas.
What if you want to embed widget in a Page or Post?
How to Add Numbered Pagination in Blogger? The firest thing you need to do is to login into your Google account. Once logged in go to Blogger Dashboard Template Edit HTML and search for the Skin tag. After finding the skin tag, just above it paste the following piece of coding. This members-only tutorial provides the steps to add a Read More button that can be linked to the blog below the four widgets in Front Page 2 widget area on Wellness Pro's homepage. Tested in Wellness Pro 1.1.4 and Genesis 3.3.3. So this tutorial will show you how to add numbered page navigation using Javascript to a Blogger/ blogspot blog. You can select one of the 7 available styles below. Adding Numbered Page Navigation to Blogger You can add this widget in just two steps. Adding The Script. Now let's see how to add the CSS style for page navigation.
In this post I will cover a plugin which allows you to embed any widget in a Page or Post.
The plugin is AMR Shortcode Widget. Its a very popular plugin with 4.9 rating and has over 100,000 downloads. Here are the instructions to use it:
Install and Activate the plugin
The plugin we are using is AMR Shortcode Widget Plugin
Installing and activating the plugin will add a new “Shortcode Sidebar“.
![How To Add Numbered Page Navigation Widget For Blogger How To Add Numbered Page Navigation Widget For Blogger](/uploads/1/1/9/8/119850395/382368400.gif)
This sidebar will hold the widgets and their settings. These widgets can then be embedded via a shortcode.
Refer to the following screenshot
Adding a Widget to Page Content
Drag the widgets you want to embed to the Shortcodes Sidebar. These widgets can then be called inside any page or a post.
Here are a few ways to call the widgets
1. Display Widgets by Name
Use [do_widget widgetname] code to add a widget by name. So if you want to display a text widget use this code [do_widget text].
It will display all text widgets contained in the Shortcode Sidebar.
2. Display Widgets by ID
Use [do_widget id=widgetid] to display a widget by ID.
If you want to display a specific widget then this approach will be the best.
3. Display All Widgets in Shortcode Sidebar
You can also display all the widgets contained in Shortcode Sidebar.
Simply use [do_widget_area] shortcode.
Points to Note
The plugin also provide a lot options to customize the widget, For Example
- One can hide the title by using title=flase. Here is the code [do_widget pages title=false]
- One can wrap the title in a html tag. [do_widget pages title=h3] will wrap h3 tag around the widget title
- Once can wrap the complete widget in a HTML Tag. [do_widget “tag cloud” wrap=aside] will wrap the widget in an “aside” html tag.
- One can also add a custom css class to the widget. [do_widget widgetname class=mycssclass] will add the mycssclass to the widget. You can then target this css class to style the widget
Thats it. As you can see , adding a widget to content is really easy. I hope our users will find this tutorial useful.
- How to create 301 Redirects in WordPress - December 21, 2019
- How to Filter Blog Posts by Author in WordPress Admin panel - October 21, 2019
- How to convert / change post type in wordpress - October 21, 2019
Bloggers standard pagination allows readers to browse through your blog page by page using older/newer or previous/next navigation.
This post will show you how to add a numbered pagination instead, replacing the older/newer pagination with a numeric navigation allowing users to jump through pages.
Due to the restrictions on Blogger the pagination.js file in step 2 below now needs to be hosted directly within your theme and not in an external file. It’s currently hosted on my Github account and should work, but I recommend hosting it yourself.
Installing Numbered pagination on Blogger
Before going any further, make sure to backup your Blogger template.
1. Styling The Pagination
Firstly we’ll add the styling to the CSS. To do so, go to Template > Edit HTML and search for
]]></b:skin>
. If you’re having trouble finding it check this tutorial. Just above the
]]></b:skin>
tag paste the followingYou can edit the CSS above to customise the look of the pagination and make it suit your blog design. You can really style it anyway you want but my suggestion is to change the colours, adjust padding space and add your own fonts.
2. Add Pagination Functionality
Now we can add the JavaScript to turn the default older/newer navigation into a numeric pagination on index pages.
Again go to Template > Edit HTML. Search for the closing body tag,
</body>
, which will be near the end of your template.Just above the closing body tag paste the following
As you can see, we’re using a conditional statement to target only the index page, leaving the older/newer navigation on all other pages.
How To Add Numbered Page Navigation Widget For Blogger Profile
Change the
postperpage
value to the number of posts that will appear on each page. This should match the number you’ve selected in Settings > Posts, comments and sharing settings > Posts > Show at most. Change the
numshowpage
value to how many pages you want shown in the numbered page navigation.You can also change the
prevpage
and nextpage
values to the text you want displayed.How To Add Numbered Page Navigation Widget For Blogger Free
Then Save Template, you should now see the numbered pagination on index pages.