# Loading in Wordpress

First, make sure you have enabled support for the WordPress Consent Mode:

* Log in to your account at <https://www.abconsent.com>.
* Open your CMP configuration.
* Go to the **"Add-ons"** page.
* Enable the **"WP Consent API connector"** option.
* Save and publish your changes.

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FG1THel05MUmRm5ZbeUuX%2Fimage.png?alt=media&#x26;token=f05b38b6-32c8-40f6-b4fc-6bc652e8ee7c" alt=""><figcaption></figcaption></figure>

Make sure to activate the [WP Consent API](https://wordpress.org/plugins/wp-consent-api/) addon in your WordPress account.

## Then, 2 methods, via the plugin or directly in the source code 👍

**A) Via the Sirdata CMP extension**

1. **Download the plugin**

{% embed url="<https://wordpress.org/plugins/sirdata-cmp/>" %}

2. **In Wordpress select “Add an extension”** in the Extensions section

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F1yWOyDuGEErtAHiuRT0g%2FW1.png?alt=media&#x26;token=aa7a82c9-c95d-48d4-9bc3-e17fb30e6e33" alt=""><figcaption><p>Add the extension</p></figcaption></figure>

3. **Select “Upload extension”**, “Choose file” and import the extension zip. Finally, click “Install”

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FWmx4gaQgJ8fp9gFRsviI%2FW2.png?alt=media&#x26;token=2646fe60-c367-4f25-b1b5-92d7cf030085" alt=""><figcaption><p>Upload the extension</p></figcaption></figure>

4. Once the installation is complete, **click on “activate extension”**

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F64jEbXa6exQpju0kJ5Tv%2F3.png?alt=media&#x26;token=e00bdb0a-b4e1-4639-8e6e-169cd74555de" alt=""><figcaption><p>Activate the extension</p></figcaption></figure>

5. **The Sirdata plugin is activated** on your Wordpress, all that remains is to configure it

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FR1pQ3eANS1GYVy9tWqaJ%2Fw4.png?alt=media&#x26;token=4a0f052e-9b18-4413-ab8f-f0a057bc9115" alt=""><figcaption><p>Succes !</p></figcaption></figure>

**B) Directly in the source code of your template**

Here are the steps to copy/paste the Sirdata CMP tag into the header of your WordPress website.

1. Select "Theme Editor" in the "Appearance" section:

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FCbUvWjvflca0SSl6mkJU%2Fimage.png?alt=media&#x26;token=d14ca67d-8b98-4fb0-9c0b-add2f8e0df8e" alt=""><figcaption></figcaption></figure>

2. &#x20;In your active WordPress theme, select the theme header (file: header.php): Select header.php.

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FpTY8zRFdrj33DQeUNxtj%2Fimage.png?alt=media&#x26;token=e73a1464-d940-44b3-811e-f92fe69a1d7c" alt=""><figcaption></figcaption></figure>

3. Paste the code snippet of the CMP just above the tag:

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F8if2jo9hPMr5QRMWNlGd%2Fimage.png?alt=media&#x26;token=3cb43a03-905f-4e3a-b601-ccaf1e5e91b3" alt=""><figcaption></figcaption></figure>

4. Save the modification of the file:

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2Foz2n7cGsyKiV5njzhF3w%2Fimage.png?alt=media&#x26;token=b7702380-638b-4235-914b-5868d4d31b25" alt=""><figcaption></figcaption></figure>

That's it! Your Sirdata CMP is now deployed on your WordPress website.
