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
ba8c070920c214da25c6536e05b9e8366d5b6372de21ba7d55c0d799b176d44136b7be7611bdc1bbfcd4abe1a83907ef54014b4d9c161bf754a2a9e8c1e743239affd4a013b028198428f47f8fa2aa85d0de40265224a487ef23a019db2bb39041fb8cd3174ba86be7478c737cdf582fe868bd494297c3cda5a264b376699ff1a24836f7975521694319524cc33b57dd30728c9e5572430a795129d3740cafe32e12005260b8759168df418ba770650d073d69ab1fd6805192875881667b1831

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
b2028805fc5d0c99163bee6e32cafe40648130f59280a1e927f3d27a7870e94c41c0883b5cbd696ae60f79c96c4715c273cca13bcb4e770b4327873bb22ff8fb0668c0cd5dc02acf171d62c94ea6d8f028b6361a2b803947e80bf16edc3fe8cd743251f4a2ff7e742009e39b77eb56264b2f018143959f8db0b351e9f1023142245f17b4da685735ee33f42f86dd2f05175d0e9711c03a6aa69bb1d1b6d420554840c388c9448c2170dcbdd1a0400f62d2a358bb60351c3024fbe4aa01ff13c9d6b72b57a5693682fb88b67407f537c33e38428d5c586aaf27c36f6dfd48a6b86bbf61bd8af5312b775aeaa51f921f9c98f2184b2b0781d875664923ee9f0323b1b1bd7da97e16981ed23070e82f71359f0b56bdca7610f40e4a3c71e36a4369b097f53989e0853b808bcd27fd0ce9282abfa0b4c2c6064d01db230ee508e7888220c8dbd50c4a3fc3282a3b0307682d5b219006d169f8a41739fb48b890160e547e87513680f47e8b5dbf8c3f75e655b1ab37ec74d7ce9c7c5ac33483e1748d1a6842d8fb055bfab9842cbe45b4b2e6d1e4789b54d2934a13045b1cb9113b849577dc2d0f51291ca60461b407565713e94f667a29d25a8ddbd6b425cf0c623d3ba6fd93a85cc3d02f86ef1f23244a7fa431f34f5fa6fb65c2057505ff4962ba3f5010b22e00a210bc4d399f9778f22330a84f950fdbd40b9905e729034e3aa5c6ad7d243dae4975db7b4ff3062ad915e5c73ad7b9fbe4d93a756944b79d956c43d4b306c760b2da4a323c21d193486444aec4e7be08fbf5b3eff29bc697653a62432d4845856cb3ba6f32cbb58bc20f5b816c82b5bb6b4fe3a3be03077030f2dd8b8d16009147c98f92e002daeab62808d31254e8d6fee0001248bf9dc41b27f0c09511364d54c9cb76f30d6fa6f88bf3f244e6de763758f2ef09e9251f0ad2481fc0e1e0be6d67a6187ed212eb4d59788cbed47c0098bcbe18665982b3e4cea1e954221781ba0d38cabf4a392c2c60549251fed62272b6b73c7e16788ccfe932f11ff184fdc6c2f6cc5c6ab1d6c89f6ada673a6c61ed31157ff05089d538cae0714194446d820cc1c624f4234b657bd4438690d761dba586ba012a5d04376adccaa2834d453232dcae8072da4f987db951e70311f67c1abe623827ecf23ec2d8a63125a9e1e2d38d0bb1a831f95b56874f9af2dbe62c9531209aa86e0f94521e13623d47e57bebb8209c2ffcd8ad99e08bac61fae72658852b724701b1c38595bb55dc27a63e628f13f804178e8ebae7fa73cdf129142a44753296143534247a3e1c9c40082ec0f590330748d0bf7fddce9e092f0ea4be83f3c100dd98398f95758d0934189271f1d79a4f88a4bc447fbaf7978a160ae3e4a33d9c5f97dd31eeb5674f2be1798ab9d441008ae7943030171e25a9ed91519f6a33a8d8335551c92a54ed2fa9e0c2dc6bcf2ccd927e20e169fcc8ff51db11c8c2059b21358d3c16a44ff3c0180ad6ec204e750c193947ffbf4970e1dbd8bd1d515d6a235e1bbbcfb82cb7daf40a0156cb3d2acd0c2dc9a1e6f41ab0d6a64bf89877718c42a5292b3106e92c6b9d72d58751645b3cf9c1276c164adab9a32b87cead4952684988ab7acd8342149e4eb45609d95433f33dce4c8d91fc92ecf0bde07d7e69466875ec5b08c66d8ec0dee68274c94d6a49eec6fd3a243735766e11e3bc30955ba7dcb70d19345c2e55c80e7f5c3718c60bf9c3528f1c80c1482af1b2e67a2b36a9290353c24720ad569ca72121a030daec7550d9059d60f0635e64ffef86031e1be89ecfa0064dfd573c6ef2db6a502eea8676d17ab9100964668ec837ff5507fe0e2d36db89bcc9b36c816696a8d84279b8186c12e5096839bcf401b23ac4fa6ecd7b1f316ec6e43e65fc3f795252a57e5eda328980f2666ed4178ca5d9676d89f58ea4e844aba611468c403a6ffc97ca09

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