Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsBlog Module
How to Change the Blog Module's Default Pagination to Include Page Numbers
How to Change the Blog Module's Default Pagination to Include Page Numbers

Learn how to change Divi’s Blog Module pagination to include page numbers, enhancing navigation and user experience on your blog.

Updated over a week ago

Improving the navigation of your blog can significantly enhance the user experience, making it easier for visitors to find and explore your content.

Changing the Blog Module’s default pagination to include page numbers provides a clearer and more structured way for users to navigate through your posts.

This article will guide you through the steps to customize the Blog Module’s pagination in Divi, transforming it from simple “Previous” and “Next” links to numbered pages for better usability.

Install and active the WP-PageNavi plugin

  1. Go to WordPress Dashboard → Plugins → Add new plugin.

  2. Use the Search form(in the top right corner) to search for WP-PageNavi.

  3. Install and activate the WP-PageNavi plugin.

    Install the WP PageNavi plugin

The pagination will look like in the screenshot below:

Blog module's new pagination - using Page Numbers

Customize the default styling of the WP-PageNavi pagination

  1. Open the Blog module settings.

  2. Go to Advanced Tab → Custom CSS → Free-Form CSS and paste this CSS code.

    selector .wp-pagenavi {
    text-align: center;
    border-top: 1px solid #dddddd;
    padding-top: 15px;
    }

    selector .wp-pagenavi .pages {
    border: none;
    }
    selector .wp-pagenavi a,
    selector .wp-pagenavi span.current {
    border-radius: 50%;
    padding: 5px 10px;
    border: 1px solid #dddddd!important;
    }
    selector .wp-pagenavi a.last {
    border: none!important;
    }

Note: In the above CSS Code, we are using the keyword selector which on the front end will be automatically replaced with the correct CSS selector, targeting the PageNavi elements generated for that particular Blog module.

The links will be styled as in the screenshot below:

Styling the WP PageNavi element
Did this answer your question?