Pagination

Pagination links allow visitors to browse more than one page of objects when there are a large number of them to display.

Pagination links are provided by the Zendesk {{pagination}} helper, but changes are possible using HTML and CSS. Our themes have the pagination links (.pagination-next-link, .pagination-prev-link, .pagination-first-link and .pagination-last-link) inherit outline button styling by default.

Pagination links will only be displayed if there are more than 30 objects (categories, sections, articles etc.) to display.

Standard pagination links
View code
fc7308390afccabd3a8c7c37fe789f8c413fc94616cdd8920630391003ffb0a9819bd809bb6a473954169f9f25a8263b45fe5f920136ef0f537904147ebcbbea223d8b469a0b7886dff59a0d50b121dbe4edf77ca58bdd808891d46ef09e21d05bfa04b93139a3274bb2d98687f62fee9ab2e460a3344c3cfe9315c44c9e1e339b932bb19de47aeb41eca6bb1a1498e4862e05e88802096f599ac261b3ecc75c6ace0b614d246429175dd102a6aa93bf0b1a4b3ca380329671cb1f88e6374c56

You can edit the pagination styles directly in the theme’s style.css file or through the _pagination.scss Sass partial to give the links a different appearance. For example, you could apply the primary button style:

Pagination links as primary buttons
View code
0abfba1f171e87e385a43ce978eab6cb603d1e192536e331060a6af021141e92005aa937059696f8c8986f70e9003f72d35365dcd464b7a9bbf92e0f37e96f99bd1ec0e30ef62584ed52c572fd487a970f0114e088eb6f4b5e2b3af50ea17e3c27d054f268213d8ba6b820545a748a51443eef3a53d510a6373b62bb4bfc2b11f98b23c2e0c781c436481f2ab7005aa6c074656e83adce68cf7832e1371a9b6d19c35d2069e6b63031cf870d4fa58fb90a9c6d839bd84e7ad14418e3ce299c90541a4aa1fa72737e0c63f351b74446e37bd8be801285593ab16d32b5470beb6d96e61d4a7547caadb82245bae58ad0011b10d1caae45da8127eded5bffe4304b09d6df375fcc55358b3378fd42245fdac99098829c271c0ce07876aee453397933dc663695bed004c3bbaa167c9a3b69e3494ea5676dfd1fdf073cfa8e2c7a2af2c66a81644a4275c4fbbbeb434a1e79b84b87ce4e175e0667c6bc758a0e8058ffe40c8e06f43ce9af13f2b7555ab9976b96aa6bfef0a62485fdfeecb0494ca651fdcc67d30781c6ecb72870d96a49458329b2224ad0e3b4072a1d75e14cc0999f847ee6202748cb05e702e91a2a46166f98ef4df8ebae70bfd33b39930f7000ad038986844656375a9b805c7807b52b808235349f25a34d8ca1e79af2a6630fa6e3fcb46b959839c3492c0005ce58417b6a3f2daede99cbaca24f733882f76bfcb7a340f0a56d7eb82addd8428fb0110bb29eb42580c5fde22cc35464f903d7a634421b65f2b12508969467d2631f7b6929f0d1093d0fb47cb635a1c248c8a65c928b85316a47dba477e7264dac48fae9ab20cf3a5907a9e95e5f6ad09daefc9d5fecc50d410221e14ed95b2614062d50f0f16d15b80586891f461db80bd7ef39d0e7f3f130184f9942861a3faf0bce3afb1d8a7c8cd2e34e26beffa174ad46727f95fc2f16bc0220cae81cca5ce8f6658db692edc217112c6b722088d2ddefc7db0bb8169b96abf2fb95e19ed440281ed3f66d1a097e9ecd44b867db8b06516ced714b9ecff0c1798c76cb816bf1ea0273bed656a851723c2fb2f8714d36d158c5be2d0ee2d89b32443e03dbf10630979fce2ff87c574996a7fc1d1227af2b6c67e58f1dc7ec0a2ba8651edbd8af261404c67eb5779130857245ee1571dea500b6712bf731f65d828163efbb957604b022865b72c1ea5b1e43161a5da543af37560152275b085167f21401f07ff2c0c0e390fc2ac69d1ad7fc08fc6f2f548084ae9e23866131ae7a34cad23dc2b570f66214510e8d1c790fd088c5d99b777d78e80b0f74f4d2195a2d85f692f94c0b69f41981c90b359766bb860865bfb62b96b9f5ada1ad39c2e3af3a310ffbd2710dcc86d01b4a59f19828fc17c7c89fd8470a88cb56025eb10f89ded326d55c12308d5928296618b0f29ae0de03adba89abee6677f6727df531627a7750d278e17fd8880a950640114e52827d19422f6758fa8f46af66628e33b5f3462c5360ad92a2487e39111618cfe7774748537e3cf1f638fb5b66c5069b475d0b9caebf7d68e192e369fe8554739593490244efe1ea5c6d617548c622693a8abc253e631ae70cd74160026dfd1c3d58332121e2a7725589887ea764d32eaa41dbe91cf51b4710fe6d3907a53aa2982b1f54873913a9cadde8ec5b98ec45ae6bcd2b8629fb4b8b5f61ecd16ea1e24bccad22f7c3e6f3148ec83ec7da9eb4a7e8efe927d1a64a11e4c2d4f677902d6b3ab9f1d504c8a1435b7e6bf96e26df09407ffe94920345a644ca1593b59ffdcc49b52042b84dbaeb959852b6b2f9586bc3b036d8f86bbfcaf3adca295de9fc65b30ccd424774cac926d4b45ba03c19b71985ba7ce727bea35d2851a61f449c9ce4327623915436896f76cecb79668f9925cc421a6e56c9b917526cdc3be174fc4fda9aa3a29433f940f1b179397b02ec742200ac37f0

The HTML for pagination links is provided by the Zendesk {{pagination}} helper and cannot be modified directly.

You can use pagination patterns by copying and pasting the code into the position you’d like them to appear on any page that supports the helper:

  • Home page
  • Article page
  • Contributions page
  • Request List page
  • Search Results page
  • Section page

Related patterns