> 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/de/features/cookies/integration/quickstart/wordpress.md).

# Wordpress

Erfahren Sie, wie Sie das Dastra-Cookie-Banner auf einer WordPress-Website integrieren.

## Das Dastra-Plugin installieren

Das Dastra-Plugin ist die empfohlene Methode: Theme-Updates überschreiben es nicht.

1. Öffnen Sie im Banner den Abschnitt **Installation** und klicken Sie auf die Karte **Wordpress**.
2. Klicken Sie auf **Bitte besuchen Sie die Plugin-Seite** oder suchen Sie in der Plugin-Liste Ihrer WordPress-Verwaltung nach dem Plugin „Dastra“. Sie können das Plugin auch in diesem Fenster herunterladen und manuell installieren.
3. Installieren und aktivieren Sie das Plugin.
4. Öffnen Sie in WordPress **Settings** > **Dastra** und klicken Sie auf **Link with Dastra**, um das Plugin mit Ihrem Banner zu verknüpfen.

<figure><img src="https://1094947073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgG4SiA7dB1sjSI91cItk%2Fuploads%2Fgit-blob-29b4046f66b6cc20eef0c407fe510ed69c80a6c6%2Fcookies-wordpress-1.png?alt=media" alt="Das WordPress-Fenster im Abschnitt Installation mit dem Link zum Plugin"><figcaption><p>Die Karte „Wordpress“ im Abschnitt Installation</p></figcaption></figure>

## Oder den Code im Theme einfügen

Wenn Sie kein Plugin installieren können, fügen Sie den Code des Banners im Theme ein. Ein Theme-Update überschreibt diese Änderung: Nehmen Sie sie stattdessen in einem Child-Theme vor.

1. Klicken Sie im Abschnitt **Installation** des Banners auf die Karte **Javascript** und kopieren Sie den Code.
2. Klicken Sie in der Verwaltung Ihrer WordPress-Website auf **Appearance** und dann auf **Theme Editor**.
3. Wählen Sie die Datei `footer.php` aus und fügen Sie den Code unmittelbar vor dem `</body>`-Tag ein.

![Der WordPress-Theme-Editor mit geöffneter Datei footer.php](https://1094947073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgG4SiA7dB1sjSI91cItk%2Fuploads%2Fgit-blob-fe5440fa4ac7e4b6ac2f6eabf71f3a71b9610204%2Fcookies-wordpress-theme-editor.png?alt=media)

4. Klicken Sie auf **Update File** und aktualisieren Sie dann die Seite Ihrer Website. Das Banner erscheint.

Fügen Sie außerdem eine Schaltfläche hinzu, die das Banner erneut öffnet, wie unter [Schnellstart](https://doc.dastra.eu/de/features/cookies/integration/quickstart.md#das-banner-uber-eine-schaltflache-erneut-offnen) beschrieben.


---

# 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/de/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.
