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
042ee941bdeeda6fb1a506d6928c5ad8f3e4e4d0e4d72a6b1f91967636ea4b0e3521e34fe4a389f750f6572a4889a7fd0079394f9ccebcf0c90505757710c9b73f68921cca7ef97b49d05abb5fc0d99452f6f96d5a1ed9811e262d1a8ebd55af4639215c9351aa202c4a6fe067949688efc806ec720a9e78e7f2856f5b07dfdca21795e11328c71506493e1ec5ae8ea5a4098c5eb2d09c30489d2e4184498ac384cb5d9cd75f4f9c82730f6cfb445c3deb7e4c5052436729b91d493d4e282a46

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
928fab9478c7eb1dec2e05af4d98994a5a5066c019d7ae78982fa119e3be83300aa49db8952632b3d54d9e394e936d60520961847e08e1fb955f7edfdbf4effe7ff0d28dac06a4ac1c223068adc98c32fa439c1f1a5fde6020b8a9f161c72093ba7c50b181f383cf48c7e38668b402f5032cbffc144df3817b6df6211729d59aa48b381cd8e29874b2d72d58e8cf6dc1048656e9ae9832baa29a2826029076cfe9832412fa0ba52f572cdb378d0d06d1c3f088835c97ac93d50f0fad0e8921e32b9468275f1847a0d6f2758d68926f5b9d2b3af439384ddd184f1b82236fc92cb8fed72abaf7f40807cd3111ea7beea2b2866d262fd4f1e7c2df6ef522803eba9b8ae294136d95b8439328da875b0f22f3c38be869e390b74fe0dd650d522f1530bf76f0ee175cf6058e7da7ba88d9fd428d6e688202afe0daef3432ea0aa5de6d3572843b376536b49ded3dd59fd31c37bd808d093ee841c9909b213d7aaef127ae901b59828249cc13583034b528c397aef299f752276a4b3d01651d9fe3d36f63a8916cbbce25f95cd69fdd260d4e55d2041d0f3415f37eabf6591dd088f1fafa67a3ae2c88278806021ea168645581f57e6eb09d4182b86e92fe3961cb672761baa36daffc941f4edd0ecc4c88ca707cff749951503c2ad20aa15f8553e06c4a2f6cf59dd643275901045d178cb7c061ce3b234910a700bf53537c6cdb2311eda4dfcd86e4a29a1cc222bc48a009e33419d0f0f1b753fabd28bb112977070c5deb99889f82704a958fc4b2ce8b7c6f890aa17e76d7af282758d552f0ea8eb26ba579306a643f6f8ee696fe45bb92fa0a0422a5a492c5ed0ded0e16efe74a7d64aba6b262cd476a7c78773d441c57020c6e55f9fa804540532f630c26c631c75743be527df4d1e44ea184d8514f3cd5a61afaf0f9102db30f1ecae76f89fddd76d946f035004f35d79230961efd126ee62c0dd494514c8d8784dcda2eb163d27f135dcdee9b6f61888f438b014d1dab8347b6b681fb441204d3353caec02a8f4c4c25b81ecc0eb22ed4ce4f5c7b8cc9671cfb96c440ad372a49c6eef9dfac8b3a3a7490b65ffddbd582bc70a61dc48c9451281bda9a11c33359a5e2f4ae8405d1ed804487acdbd5a71552998d591df540f1e3daeae63ffa22bd7d3387b3dd26a18f0be81ad53bf008c65c6375f66fb2b4269dca2affa91d84f88ad7d3e69382f300c30bd22584f108f616627e7e5cc0c166b0360928e5af5534ad26e3f28b2422d49351c7e20c617056a87422dae5c0268f3de0db36bf66860b591292acd0c01d7641caf7b845fd14cddfda8f241301fd4b5f1f5fda38718ce5c8a47fa01276a85805baea4f8d296a5913b6cc6ccf47377407a73a9a6bf9d8b67966df3f8dfe8cbc5aecd3d17a1754602886509d6e424a1352a0649f1603ecdaaea09700c5debc9a2d6dae6f50407afab62fd1068e38cba9ea958c8e1473f9c382a92c67ed1a5d9a151eca925f96d1f1ba96943e3e2a96e00ab3da9a87b6f05f6c7e836ecd3850d78d71f77cce5c150d10555d2d7ba283a3b8dbb27f7c8239349d2506c1b2f56b8908a7aee9a24e5b8a19b3ede1c71bdf8c4a7270503ac584093ffa3b324bf8ec7b27b32010c53afb5d76f0e729ee5483b8ac8a431f51b251be332322d3eb24c23b1d725a2268f1f558f96ddb4c65b794f360100a3c392e805ea38cb4de6fcf8e19b0aeb76eff7b6cd165f1eb2b3d81e73bf13da3a922dcf15e075827e76256d201ea9a388c80ce7b9b6d7db4eda52f3610c66ccf88d3ee63cb7c017b1978713c7c81b77ff123ad1dc437423bd9d4edc8a223277b57500b8322c6375d50eee4878fb6376c2c960d3b9a005a198d446f7e84d66bebb958efa1d1aac6aad6cd6649d5ecf02714823c3c0a32e8b68992c13dd1531ccc56abf4885dff24ced72604762081daf83751df9d91ff6abd64e6

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