WP-PageNavi for LightWord

Page navigation

WP-PageNavi is a page navigation WordPress plugin. It can be used to replace the Previous posts and Next posts links from the home page, categories, tags, archives, and search result pages. This plugin (WP-PageNavi-LightWord) adapts the original WP-PageNavi, by changing its look and feel to match the look and feel of famous LightWord WordPress theme. If you are using the LightWord WordPress plugin, you should try this adaptation. Otherwise, just stick with the original WP-PageNavi.

The adaptation can be seen directly in page numbers display. The original WP-PageNavi does not have background image. The LightWord version adds a background image that matches the background image that is used in some LightWord buttons. For the page numbers, the background image has been designed to suit well up until three figures. For the ‘First’ and ‘Last’ buttons, the image has been designed with fixed width, so you can’t use any arbitrary long words for those buttons. Words with up to 10 characters should fit well enough.

The following image shows the page numbers display of WP-PageNavi-LightWord:

WP-PageNavi-LightWord page numbers

And the following image shows the admin options, it doesn’t differ from the original WP-PageNavi:

WP-PageNavi-LightWord admin options

Installation

Do the following steps to install this plugin:

  1. Download the plugin from http://wordpress.org/extend/plugins/wp-pagenavi-lightword/.
  2. Extract the directory wp-pagenavi-lightword from the downloaded file, and then upload it to your WordPress plugins directory (/wp-content/plugins/).
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. This plugin requires a little bit of file edit. So, prepare any text editor to edit the /wp-content/themes/lightword/index.php. Place the following source code at the footer area:
    <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); ?>
    

    Don’t forget to delete the following block to remove the ‘Previous’ and ‘Next’ buttons:

    <div class="newer_older">
    <span class="newer"> 
      <?php previous_posts_link(__('&laquo; Newer Entries','lightword')) ?>
    </span>
    <span class="older"> 
      <?php next_posts_link(__('Older Entries &raquo;','lightword')) ?>
    </span>
    </div>
    

    Or you can replace the deleted block with the inserted text above.

Good luck!

Related Posts

Creating Menu in WordPress 3.0 Programmatically
 
This entry was posted in WordPress and tagged , .

11 Responses to WP-PageNavi for LightWord

  1. Pingback: WP-PageNavi untuk LightWord WordPress Theme « suhanto.com

  2. Adam says:

    Hi Agus. Do you know how to remove or hide the date tab on the left side of the lightword theme?

    • Agus says:

      you can turn it off from the LightWord settings (admin screen), there is an option to show or hide the box.

    • Adam says:

      Wow, Thanks buddy. It works and I’ve bookmarked your blog. One more thing, can I delete the date on my post(below the title of my post)? In a simple words, I don’t want any date on that theme. Hope you can help.

    • Agus says:

      Adam, of course you can delete all related fields to date. You can edit the source code in functions.php and find the date function, and just change it to return blank string. It should do the trick, I think.

  3. it’s a very cool and smooth plugin, thank you :D

  4. scribu says:

    Hello, don’t know if you follow the support forums or not, but just wanted to bring this topic to your attention:

    http://wordpress.org/support/topic/417907

  5. GoMe says:

    I can not activate this plugin. at the time of this writing appears to activate : Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/majalahm/public_html/wp-content/plugins/wp-pagenavi-lightword/wp-pagenavi-lightword.php on line 186

    Thanks

  6. Pikkio says:

    same problem for me.. i use wordpress 2.9.1

  7. It’s great to look at web sites along with information and thanks a lot for the discuss that will you’ve got gave. Usually, I’m quite surprised, but etc…

Leave a Reply

Your email address will not be published.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Me

I am a professional developer and designer for the following systems: WordPress, Magento, and OpenCart. You can hire me to do overseas works related to those systems.
Hire me | Donate / Payment | Testimonials

Recent Comments