> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/nl/features/cookies/integration/quickstart/wordpress.md). Agents can also search and read this documentation through its [MCP server](https://doc.dastra.eu/~gitbook/mcp).

# Wordpress

Leer hoe u de Dastra-cookiebanner op een WordPress-website integreert.

## De Dastra-plugin installeren

De Dastra-plugin is de aanbevolen methode: updates van het thema overschrijven ze niet.

1. Open in de banner de sectie **Installatie** en klik op de kaart **Wordpress**.
2. Klik op **Bezoek de plugin-pagina**, of zoek de plugin "Dastra" in de lijst met plugins van uw WordPress-beheer. U kunt de plugin ook in dit venster downloaden en handmatig installeren.
3. Installeer en activeer de plugin.
4. Open in WordPress **Settings** > **Dastra** en klik op **Link with Dastra** om de plugin aan uw banner te koppelen.

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-29b4046f66b6cc20eef0c407fe510ed69c80a6c6%2Fcookies-wordpress-1.png?alt=media" alt="Het venster Wordpress van de sectie Installatie met de link naar de plugin"><figcaption><p>De kaart "Wordpress" van de sectie Installatie</p></figcaption></figure>

## Of de code in het thema plakken

Kunt u geen plugin installeren, plak dan de bannercode in het thema. Een update van het thema overschrijft deze wijziging: pas ze daarom toe in een child theme.

1. Klik in de sectie **Installatie** van de banner op de kaart **JavaScript** en kopieer de code.
2. Klik in het beheer van uw WordPress-site op **Appearance** en daarna op **Theme Editor**.
3. Selecteer het bestand `footer.php` en voeg de code net vóór de tag `</body>` in.

![De thema-editor van WordPress met het bestand footer.php geopend](https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-fe5440fa4ac7e4b6ac2f6eabf71f3a71b9610204%2Fimage%20\(80\).png?alt=media)

4. Klik op **Update File** en vernieuw daarna de pagina van uw website. De banner verschijnt.

Voeg ook een knop toe die de banner opnieuw opent, zoals beschreven in [Snel aan de slag](https://doc.dastra.eu/nl/features/cookies/integration/quickstart.md#de-banner-vanaf-een-knop-opnieuw-openen).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/nl/features/cookies/integration/quickstart/wordpress.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
