[Resolved] Page navigation styles

Home Forums Support [Resolved] Page navigation styles

Home Forums Support Page navigation styles

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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/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

    #134204
    Tom
    Lead Developer
    Lead Developer

    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.

    #134217
    stardrive

    Thank you, Tom.

    I have deleted the plugin and added the code to my child functions.php file

    Regards,

    Stardrive

    #134321
    Tom
    Lead Developer
    Lead Developer

    Awesome – is it working? 🙂

    #134323
    stardrive

    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

    #134335
    Tom
    Lead Developer
    Lead Developer

    The posts per page is defined in “Settings > Reading”.

    #134363
    stardrive

    Thank you Tom.

    I have set the posts per page is in “Settings > Reading”.

    I am styling the WP-pagenavi

    Regards,

    Stardrive

    #134369
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.