# Wordpress

## 1. Retrieve the SDK

Once you have finished configuring and designing the Dastra cookie consent widget, you can retrieve the SDK in the "Code" section.

{% hint style="info" %}
You can find this piece of code and copy / paste it here: Cookie consent> Edit> Code
{% endhint %}

![](https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvBxs22wUMicv9uWp6C%2F-M73IX9imkdbZA5ywzeF%2F-M73JEcghUXlXsiWNYUD%2Fimage.png?alt=media\&token=8f71cc1b-0281-4276-91df-93d62833602c)

## 2. Copy and paste in the Wordpress editor

Once the code is retrieved, go to the administration console of your Wordpress site.&#x20;

Click on the "Appearance" button in the vertical banner on the left of the screen, then on the "Theme Editor" button.

&#x20;Select the "Footer.php" file on the right of the screen that appears, then insert the code previously retrieved from Dastra at the end of the \<body> tag (just before \</body>).

![](https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvBxs22wUMicv9uWp6C%2F-M73IX9imkdbZA5ywzeF%2F-M73JlwEqDXuIfFcbK8Z%2Fimage.png?alt=media\&token=49177474-4e15-46fc-b247-9e9a7d5ad936)

Save by clicking on "Update file", then refresh the page of your website. That's it, the banner appears!
