Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Resolved] Pagenavi styles?

Home Forums Support Pagenavi styles?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #146303
    erni74

    Hello,

    I have a question for the page navigation. Where I can replace the standard paging (1 2 … 75 Next →) with the easier pagenavi plugin?

    #146309
    bdbrown

    Hi erni. After installing the WP-PageNavi plugin you would either create a plugin as Tom described in this post, or add this code to your child theme functions.php file:

    add_action('generate_paging_navigation','generate_pagenavi_integration');
    function generate_pagenavi_integration()
    {
        wp_pagenavi();
    }
    

    Then you would add this css to your child theme style.css file to hide the default theme pagination:

    .page-numbers {
          display: none;
    }
    

    Adding PHP Functions: https://generatepress.com/knowledgebase/adding-php-functions/
    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    Let me know if that helps.

    #146453
    erni74

    works fine

    #146505
    bdbrown

    Glad it’s working 🙂

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