Pagination is a type of components of a site that regularly will get overpassed, particularly relating to design. And there are a couple of puts the place pagination could also be suitable to make use of on your site. Mainly, pagination (or a pagination menu) permits customers to navigate thru a couple of pages of things (an archive of posts for instance). That is particularly useful for chopping down at the preliminary web page content material.

Divi has a couple of modules that come with pagination (just like the gallery module) which will also be styled the use of integrated settings. A few of these modules (like weblog and portfolio) inherit the default pagination of the Divi Theme (or WordPress) which will also be over simplified for some websites. However with the assistance of a plugin, you’ll be able to substitute the pagination of all of your theme with a extra complicated one. Then you’ll be able to taste it with CSS then again you want.

On this instructional, I’m going to turn you learn how to taste pagination all through Divi. Here’s what we will be able to be going over:

Let’s get began.

Sneak Peek

This publish is most commonly about learn how to taste pagination. On the other hand, listed here are a few complicated pagination types I’ll be appearing you learn how to construct.

style pagination in divi

style pagination in divi

Getting Began

For this instructional, you’re going to want the next:

  • the Divi Theme put in and lively.
  • To check out the pagination designs of various modules, you’re going to want some mock content material. As an example, for designing the portfolio (or filterable portfolio) module pagination, you’re going to want at round 12-16 initiatives added for your theme so you’re going to have sufficient content material to permit the pagination to take impact. For the gallery module, you’re going to additionally want round 12-16 pictures to populate the gallery.
  • If you’ll wish to use the WP-PageNavi Plugin, it is important to set up and turn on the plugin. This can be a loose plugin that may be downloaded from the WordPress Listing from throughout the WordPress Dashboard of your website online. Merely navigate to Plugin > Upload New and seek for WP-PageNavi.
    style pagination in divi

Upon getting some mock content material in position, you are prepared to create a brand new web page. Out of your WordPress dashboard, navigation to Pages > Upload New. Come up with web page a name and deploy the Divi Builder. Make a selection the way to “Construct from Scratch”. Then click on to Construct at the Entrance Finish.

Now you are prepared to begin trying out out some pagination designs.

Issues to Believe When Styling Pagination in Divi

In most cases talking, you almost certainly don’t wish to move too loopy with the design of pagination as a result of, like all navigation menu, it is very important stay it easy and intuitive. On the other hand, right here are some things you could believe when designing pagination in Divi.

Pagination Font

Pagination is a smart position to break free from the principle fonts you might be the use of in your website online. You need to make a choice the best fonts aimed toward consumer interfaces and navigation. And because pagination accommodates most commonly numbers, you wish to have to ensure the font shows all numbers with equivalent peak and width (what typography mavens name lining and tabular). A couple of of my conservative favorites come with Oxygen, Nunito Sans, and Supply Sans Professional. And when you have numerous pages on your pagination, you might want to release some area via going with a condensed font like Fjalla One or Roboto Condensed.

Pagination Font Taste

You’ll additionally check out a couple of font types to set your pagination aside. As an example, that you must use the uppercase font taste to make the “subsequent” and “earlier” hyperlinks extra pronounced and equivalent to the peak of the web page numbers. On the other hand, including the underline font taste could be bit redundant bearing in mind the hyperlinks are already in a navigation menu.

Pagination Letter Spacing

Letter spacing is an effective way so as to add slightly extra horizontal spacing for your pagination. This will upload a pleasing design component and make the navigation stand out.

Pagination Textual content Alignment

In Divi you’ll be able to simply align your pagination to the left, middle, or proper of the web page. So don’t omit about this on every occasion you might be designing your internet web page.

Clickable House

It is very important have sufficient clickable area in your pagination hyperlinks. Via default, this can be moderately small. You’ll building up clickable area via the use of greater textual content or expanding the road peak. However you’ll be able to additionally upload some padding round the ones hyperlinks with some CSS.

Pagination Textual content Measurement

Pagination textual content length usually is moderately small. That is most likely to stay it from distracting customers from the content material of the web page. On the other hand, having a bigger textual content length can building up the clickable area of the pagination hyperlink and make is extra noticeable to customers. I really like to make use of a vw length unit for greater pagination textual content in order that it scales with the browser and content material well.

Pagination Line Peak

Since pagination usually remains on one line, you’ll be able to escape with including slightly extra line peak to the hyperlinks with the intention to upload further clickable area.

Pagination Textual content Shadow

Textual content Shadow will also be distracting if used poorly. Easiest to go away it out except you intend on retaining it refined. It can be used so as to add an inventive glow round your textual content if you wish to that roughly factor.

Pagination Energetic Web page

This side of pagination is essential for letting customers know what web page they’re lately on when navigating. There must be a transparent distinction between the way of the lively web page hyperlink and the non-active web page hyperlinks. Via default, Divi will use the principle accessory colour set within the Theme Customizer as the colour of the lively web page hyperlink in Divi. On the other hand, you’ll be able to override this with line of CSS.

For modules that experience pagination, Divi has integrated design choices for styling other components of the pagination. Plus you’ll be able to simply upload some snippets of CSS within the complex tab for much more keep watch over over the design in a single handy position.

However for pagination on the theme stage, you’ll be able to get a fancy resolution the use of the WP-PageNavi plugin with customized CSS (extra in this later).

For now, let’s get started with learn how to taste pagination in Divi Modules.

Styling Divi Gallery Module and Filterable Portfolio Module Pagination

With the Divi Builder lively on a brand new web page, create a brand new common phase with a one-column row. Then upload a filterable portfolio module to the row. As discussed previous, you should definitely have 12-16 initiatives created so you’ll be able to see the pagination.

Within the filterable portfolio settings, replace the next:

Posts Quantity: 4 (so you’ll be able to see extra web page hyperlinks within the pagination)

Display Name: NO
Display Classes: No

Via default Divi will Display Pagination so go away that choice set to YES.

You must see the pagination on the backside proper of the portfolio.

style pagination in divi

To taste the pagination, move over to the design tab and open the Pagination Textual content toggle to peer the entire choices to be had. Replace the next:

Format: Grid
Pagination Font: Supply Sans Professional
Pagination Font Taste: TT
Pagination Textual content Alignment: Middle
Pagination Textual content Colour: #cccccc
Pagination Textual content Measurement: 4vw (desktop), 38px (pill and contact)
Pagination Letter Spacing: 1vw
Pagination Line Peak: 2em

Then click on the complex tab and upload the next snippet of CSS underneath Pagination Energetic Web page:

colour: #0096eb !essential;

Via making the textual content greater with a larger line peak, there’s extra clickable area for customers. Converting the alignment to middle and including a little bit letter spacing is helping make the pagination extra noticable. And the customized pagination textual content colour with the contrasting lively web page colour is helping the consumer know what web page they’re on.

Different Fast CSS Snippets

Listed below are a couple of fast and simple CSS snippets to switch up the pagination design.

To take out the default border line that sits without delay above the pagination, you’ll be able to input the next CSS underneath Portfolio Pagination:

border: none;

style pagination in divi

To present your pagination a whole border, you’ll be able to input the next CSS underneath Portfolio Pagination:

border: 2px forged #dddddd;

style pagination in divi

To provide you with pagination a background colour, you’ll be able to input the next CSS underneath Portfolio Pagination:

background: #333333;

style pagination in divi

Works for Gallery Module as smartly

This identical design settings will paintings for the Gallery Module as smartly. In reality you’ll be able to reproduction the pagination textual content types from the Filterable Portfolio Module and paste them right into a Gallery Module! Simply you should definitely switch over any CSS snippets as smartly.

style pagination in divi

Complicated Pagination Kinds for Gallery Module and Filterable Portfolio Module

style pagination in divi

If you wish to get a extra complex design for the pagination of you Filterable Portfolio and Gallery modules, you’ll be able to use some extra complex customized CSS. What I really like about this actual instance is that the customized CSS works in tandem with the inbuilt settings of the module.

To reveal, let’s use the Filterable Portfolio once more. This time, replace the design choices with the next:

Format: Grid
Pagination Textual content Measurement: 16px
Pagination Line Peak: 2.5em

style pagination in divi

Below the complex tab, upload the next CSS elegance:

CSS Elegance: pagi-space

This will likely permit our CSS to be carried out most effective to this module.

style pagination in divi

Now save your settings and open the Web page Settings popup modal. Below the complex tab, upload the next CSS code throughout the Customized CSS field.

.et_pb_filterable_portfolio.pagi-space .et_pb_portofolio_pagination, .et_pb_gallery.pagi-space .et_pb_gallery_pagination {
  border: none; 

.et_pb_filterable_portfolio.pagi-space .et_pb_portofolio_pagination ul li a, .et_pb_gallery.pagi-space .et_pb_gallery_pagination ul li a {
  padding: 1em 1.5em;
  background: #eeeeee;
  border: 1px forged #eeeeee;

.et_pb_filterable_portfolio.pagi-space .et_pb_portofolio_pagination ul li a:hover, .et_pb_gallery.pagi-space .et_pb_gallery_pagination ul li a.hover {
  border-color: #333333;

.et_pb_filterable_portfolio.pagi-space .et_pb_portofolio_pagination ul li a.lively, .et_pb_gallery.pagi-space .et_pb_gallery_pagination ul li a.lively {
  background: #333333;
  colour: #ffffff;
  border-color: #333333;

style pagination in divi

With the code in position, you’ll be able to see that the pagination now has extra clickable area for every of the web page hyperlinks. And the hyperlinks even have background colours added in order that they appear extra like clickable buttons. A refined border is added to every of the hyperlinks on hover as smartly. The lively web page hyperlink sticks out with a contrasting darkish background with lighter textual content colour.

This code will taste the pagination for each the filterable portfolio module and the gallery module. Simply you should definitely upload the CSS elegance “pagi-space” to the module for it to take impact.

Here’s the outcome at the filterable portfolio module.

style pagination in divi

Styling Weblog Module and Portfolio Module Pagination

The Weblog Module and Portfolio Module inherit the default WordPress pagination that permits you to navigate thru your publish archive with a hyperlink to “Older Entries” and a hyperlink to “Subsequent entries”.

Here’s what the default pagination seems like at the weblog archive web page within the Divi Theme:

style pagination in divi

This identical pagination is utilized by the weblog module and portfolio module.

style pagination in divi

If you’re the use of the Weblog Module (or portfolio module), you’ll be able to taste the pagination textual content the use of the integrated settings.

style pagination in divi

This can be a easy and sublime resolution for many instances. On the other hand, in case you are in search of a extra complicated pagination to interchange the default Divi/WordPress pagination, there’s a resolution that is really easy it will wonder you.

Including Advanced Pagination to Divi The usage of the WP-PageNavi Plugin

If you wish to have a extra complex pagination for all of your Divi Theme, together with the weblog module and portfolio module, you’ll be able to substitute the default WordPress pagination with a distinct one the use of the preferred plugin referred to as WP-PageNavi. This plugin works smartly with Divi. The design is elementary however can simply be custom designed the use of CSS.

Including the Plugin to Divi

When you haven’t completed so already, move forward and set up the plugin as described within the “Getting Began” phase on the best of the publish. As soon as the plugin is put in and lively, the brand new type of pagination will display up mechanically all through your theme.

style pagination in divi

It’ll additionally have an effect on the weblog module and portfolio module as smartly.

style pagination in divi

Plugin Settings

You’ll find the plugin settings out of your WordPress dashboard via navigating to Settings > WP-PageNavi.

style pagination in divi

The settings are basically for customizing the capability and textual content content material this is displayed. On the other hand, if you wish to taste the pagination, it is important to use some customized CSS.

Styling WP-PageNavi Pagination with Customized CSS

Since you’re going to most likely wish to taste the pagination for all of the theme, it makes maximum sense so as to add the CSS to the Theme Customizer or your Kid Theme taste.css report. Cross forward and position the next CSS into the Theme Customizer Further CSS field:

/*types the wp-pagenavi pagination hyperlinks*/
.wp-pagenavi a, .wp-pagenavi span {
  padding: 0.3em 0.8em !essential;
  font-size: 2em !essential;
  colour: #333333;
  line-height: 2em;
  background: #eeeeee;
  transition: all .5s;

/*types the wp-pagenavi present web page quantity*/
.wp-pagenavi span.present {
  colour: #ffffff !essential;
  background: #333333 !essential;

/*types the wp-pagenavi pagination hyperlinks on hover*/
.wp-pagenavi a:hover {
  colour: #ffffff !essential;
  background: #333333 !essential;

/*types the wp-pagenavi pages textual content*/
.wp-pagenavi .pages {
  background: none;

style pagination in divi

Here’s the general consequence.

style pagination in divi

Styling WP-PageNavi within the Weblog Module and Portfolio Module

As discussed previous, the Weblog Module and Portfolio Module inherit the default WordPress web page navigation. Since this has been changed with WP-PageNavi’s new complicated pagination, the modules will show this new pagination as smartly.

You’ll use the integrated pagination textual content design choices so as to add additional styling to the pagination.

style pagination in divi

Simply remember that one of the most choices won’t paintings as anticipated with exterior customized CSS in position.

Ultimate Ideas

Pagination doesn’t must proceed to be an afterthought when development a site in Divi. There are some useful integrated choices to lend a hand with the ones modules that use pagination. And with some customized CSS you’ll be able to create any taste you wish to have. The WP-PageNavi plugin is a sublime resolution for including a fancy pagination all through the Divi Theme. No longer most effective does it paintings seamlessly with Divi, it will give you further choices you’ll be able to simply customise. Styling the WP-PageNavi pagination does require some CSS, however optimistically the template utilized in this article is going to put you not off course.

The instance designs on this publish had been purposefully merely.

I sit up for listening to from you within the feedback.


The publish A Handy Guide on How to Style Pagination in Divi seemed first on Elegant Themes Blog.

WordPress Web Design

[ continue ]