Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

WP-PageNavi

Home / Forums / Virtue Theme / WP-PageNavi

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme

Tagged: 

February 9, 2014 at 7:19 pm

Hi,

I’d like to install the plugin WP-PageNavi on my site; plugin documentations says:

***************************************************

“In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.

In the Twentyten theme, it looks like this:

<div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘twentyten’ ) ); ?></div>
<div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?></div>
You would replace those two lines with this:

<?php wp_pagenavi(); ?>
For multipart pages, you would look for code like this:

<?php wp_link_pages( … ); ?>
and replace it with this:

<?php wp_pagenavi( array( ‘type’ => ‘multipart’ ) ); ?>
Go to WP-Admin -> Settings -> PageNavi for configuration.”

**********************************************************************

I don’t know if Virtue Premium is multipart page or regular page type and I don’t know where to go in the theme files to change it. Can you please assist me by telling me where/ what code to replace in this theme. Also, I am using a child theme, so would I do this in the original or my child copy?

I know the theme supports continuous scrolling, which is great for many who prefer it, but I always install PageNavi on any theme I use.

Thank You

  • The forum ‘Virtue Theme’ is closed to new topics and replies.