Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi James,

    I noticed this too, and finally it got the best of me, I fixed it. The problem is in inc/template-tags.php

    Look for ipt_kb_content_nav(), the a href= section of the str_replace() array is never found, because something inserts class definitions in between…

    My quick fix, was to change it to this:

    $wp_pagenavi = str_replace( array(
    			"<div class='wp-pagenavi'>",
    			'</div>',
    			"<span class='pages'>",
    			'</span>',
    			"<span class='current'>",
    			'<a class=',
    			'</a>',
    			"<span class='extend'>",
    			/* translator: Translate it to the output of WP PageNavi for your lang */
    			__( '&laquo; First', 'ipt_kb' ),
    			/* translator: Translate it to the output of WP PageNavi for your lang */
    			__( 'Last &raquo;', 'ipt_kb' ),
    			'&laquo;',
    			'&raquo;',
    		), array(
    			'<ul class="pagination">',
    			'</ul>',
    			'<li class="disabled"><span>',
    			'</span></li>',
    			'<li class="active"><span>',
    			'<li><a class=',
    			'</a></li>',
    			'<li class="disabled"><span>',
    			'<i class="glyphicon glyphicon-fast-backward"></i>',
    			'<i class="glyphicon glyphicon-fast-forward"></i>',
    			'<i class="glyphicon glyphicon-backward"></i>',
    			'<i class="glyphicon glyphicon-forward"></i>',
    		), $wp_pagenavi );

    Note “a href” has changed to “a class”.

    This would probably ultimately be better fixed either by making sure the class gets inserted after or change the str_replace to reg_replace.

    In any case, it works now.

    Thread Starter James Adamthwaite

    (@jamesadamthwaite)

    GREAT! THANKS! That’s working for me, too!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Page Navi — Broken’ is closed to new replies.