# Ajax Pagination

**Navigate through multiple pages of results.**

Cannot be used with Infinite Scroll or Load More on the same query.

**Content Settings**

| Setting                | Description                          |
| ---------------------- | ------------------------------------ |
| **Query Name**         | Must match your Main Query           |
| **Button Type**        | Text only, Icon only, or Text & Icon |
| **Previous/Next Text** | Labels for navigation buttons        |
| **Previous/Next Icon** | Icons for navigation buttons         |
| **Icon Style**         | Size and color                       |
| **Icon Position**      | Left or Right of text                |

**Design Settings**

* Layout: Width, spacing, alignment (left/center/right), margin
* Button: Padding, background, borders, typography, shadows
* Hover/Active states with full customization
* Transition duration

**Features**

* Smart ellipsis for many pages (1 ... 5 6 7 ... 20)
* Previous/Next buttons auto-disable at boundaries
* Smooth scroll to top of results on page change
* URL updates with page number for shareable links


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.woohoo.dance/ajax-filters/elements/ajax-pagination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
