jonathanmarkevich
Forum Replies Created
-
Wow. Nailed it in one. You guys are amazing.
Thanks so much!
Ooh cool. Do you mean do these actions as shop admin or as administrator?
I will try that later, I just recovered from a hack this morning so I don’t want to adjust security settings until I know it’s safe.
Thank you!
Forum: Themes and Templates
In reply to: [WP Knowledge Base] WP Page Navi — BrokenHi 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 */ __( '« First', 'ipt_kb' ), /* translator: Translate it to the output of WP PageNavi for your lang */ __( 'Last »', 'ipt_kb' ), '«', '»', ), 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.