- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
Tom.
-
AuthorPosts
-
September 3, 2015 at 10:46 am #134117
stardrive
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/dba8ffb102ece3152237to 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
September 4, 2015 at 12:10 am #134204Tom
Lead DeveloperLead DeveloperHi 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 4, 2015 at 1:12 am #134217stardrive
Thank you, Tom.
I have deleted the plugin and added the code to my child functions.php file
Regards,
Stardrive
September 4, 2015 at 9:00 am #134321Tom
Lead DeveloperLead DeveloperAwesome – is it working? 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 4, 2015 at 9:17 am #134323stardrive
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
September 4, 2015 at 9:56 am #134335Tom
Lead DeveloperLead DeveloperThe posts per page is defined in “Settings > Reading”.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 4, 2015 at 10:42 am #134363stardrive
Thank you Tom.
I have set the posts per page is in “Settings > Reading”.
I am styling the WP-pagenavi
Regards,
Stardrive
September 4, 2015 at 10:54 am #134369Tom
Lead DeveloperLead DeveloperNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.