Plugin: WP PageNavi
This plugin allows to have a more advance navigation of your pages in your blog.
- First, download the latest version of
WP PageNavi by Lester “GamerZ” Chan - Extract the file.
- Upload the wp-pagenavi folder to your /wp-content/plugins/ folder.
- Go to your WordPress admin panel » Plugins.
Look for WP PageNavi, and activate it. - On your theme index page; index.php, find the following code:
<?php posts_nav_link(”, __(”), __(‘« Previous entries’)); ?>
<?php posts_nav_link(‘ ‘, __(”), __(”)); ?>
<?php posts_nav_link(”, __(‘Next entries »’), __(”)); ?>
And replace it with this:
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?> - You’re done.
Customizing it
In order to customize your WP PageNavi, open up pagenavi-css.css under your /wp-content/plugins/wp-pagenavi folder.
To center the WP PageNavi, open up your pagenavi-css.css and add this to your CSS:
div.wp-pagenavi {
text-align: center;
}