Archived topic
Page navigation styles
7 replies · Started by stardrive on September 3, 2015
Hello Tom,
I have used the threads:
https://generatepress.com/forums/topic/blog-paging-pagenavi-styles/
and the code in https://gist.github.com/generatepress/dba8ffb102ece3152237
to create a plugin that will allow WP-PageNavi plugin to replace the standard pagination. But, I cannot see your themes standard pagination or the WP-PageNavi plugin pagination anywhere in my site.
Please, where are the standard paginations replaced? Is it in Post Archives in in single post pages?
Also, can't I add this code:
add_action('generate_paging_navigation','generate_pagenavi_integration');
function generate_pagenavi_integration()
{
wp_pagenavi();
}
to functions.php without having to create just a simple plugin?
Regards,
Styardrive
Hi there,
You can add that code to your child functions.php - it will work the same as creating a simple plugin.
Once added, it should display on your website where pagination is needed.
Thank you, Tom.
I have deleted the plugin and added the code to my child functions.php file
Regards,
Stardrive
Awesome - is it working? :)
I am not really sure how to test whether it is working. I guess the WP-PageNavi control is supposed to display on a post archive page when the number of posts per page is exceeded. And, I don't know the number of posts per page or where it is defined.
May be I am lazy here (LOL)
Regards,
Stardrive
The posts per page is defined in "Settings > Reading".
Thank you Tom.
I have set the posts per page is in “Settings > Reading”.
I am styling the WP-pagenavi
Regards,
Stardrive
No problem :)
