Adding a Page Navigation to your WordPress

  • Share
  • Share

Treating your user good is always a key for web development. By adding a page navigation is one important key to wordpress blogging. Let’s take a look at the big boys which uses page navigation in there blog style tuts/reviews.

Smashing Magazine

smashingmagazine

net tuts+

nettuts

In this tutorials, I am going to guide you through on setting up your own page navigation on your wordpress.

Plugin Information

Author: Lester ‘GaMerZ’ Chan
This plugin will add more advanced page navigation to your WordPress blog. If you like this translation please feel free to drop him a note of thank you, or maybe you would like to give him a token of gratitude. His paypal account is lesterchan@gmail.com
Readme | Download

Task needed to complete.

  1. Download and Install the plugin
  2. Inserting the php code to your theme
  3. Setting up your PageNavi plugin
  4. Changing the CSS style on your PageNavi Plugin

Step 1 – Download the plugin

First you will need to download the latest plugin that fit your wordpress version. You can download it from here.
download

Step 2 – Installation

There’s 2 way to install to the wordpress. 1. Upload the plugin from the admin panel of wordpress. Go to YOURDOMAIN.com/wp-admin, please login and go to the following section. Plugins > Add New > Upload > select file to upload > Install Now
installation

Step 3 – Coding

pagenavi_php

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

From the author site “Open wp-content/themes/< YOUR THEME NAME >/footer.php” You can put this code anywhere e.g. footer.php , but in this tutorial we are going to put it in the index.php file. Open wp-content/themes/< YOUR THEME NAME >/index.php.

Step 4 – Settings

Basically this page give you the possibility to change the way of display without touching any code. Feel free to test this around.
pagenavi_settings

Step 5 – Settings

Basically this page give you the possibility to change the way of display without touching any code. Feel free to test this around.
pagenavi_settings

Step 6 – CSS Styling

WP-PageNavi will load ‘pagenavi-css.css‘ from your theme’s directory if it exists. If it doesn’t exists, it will just load the default ‘pagenavi-css.css’ that comes with WP-PageNavi. This will allow you to upgrade WP-PageNavi without worrying about overwriting your page navigation styles that you have created.

First, I will suggest you to make a copy of the css to your theme folder.
In this tutorial, I will show you a simple way to change color and add a web2.0 gradient in your a tag.

First in your photoshop, create a new file called the number_bg.gif. you can download our gif here.

.wp-pagenavi span, .wp-pagenavi a{background:url('images/number_bg.gif');}

The pagenavi class structure are base on span and a tag, so this css will create a background image on all related span and a tag within the class of wp-pagenavi.

Related Posts Plugin for WordPress, Blogger...

I hope you have enjoyed this post, be sure to subscribe to my rss feed by click the subscribe button at the top.

Good Luck!

Be Sure to Subscribe to our feed or follow us on twitter to get the latest updates/patches
End of Article, Thanks for reading.
You can leave a response, or trackback from your own site.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

4 Responses to “Adding a Page Navigation to your WordPress

  1. Blog Plugin says:

    In Tasks view , you can list the tasks that need to be accomplished to create the web. Blog Plugin

    • Vincent says:

      Thanks for your comments, as the site and the tutorial is still in progress of fine tuning.
      This is a great comment, we will try to add that in. Thanks for the support.

  2. kevin696 says:

    Hi there, thanks for this tutorial, but do you know how to add extra span to the pagenumbers and let it float the right and remain your page 1 of N on the left?

  3. Mike says:

    I have had the hardest time getting this set up to be honest, Iam following the directions but damn it isnt working :( Is this compatible with wordpress 3.01?

Leave a Reply