# Word Press

Harness is compatible with Wordpress! Follow these steps to "Harness your Website" on your Wordpress!<br>

### Option 1: Use a plugin <a href="#option-1-use-a-plugin" id="option-1-use-a-plugin"></a>

**Step 1:** Click on "Plugins" on your Left Sidebar Menu in Wordpress

**Step 2:** Click "Add New" in Plugins

**Step 3:** Search for the plugin: "**Header and Footer Scripts"**&#x20;

**Step 4:** Hit **Install --> Activate** and you'll now have the plugin.

**Step 5:** On your Wordpress Left Sidebar - Click **Settings** > **Header and Footer Scripts**

Using that plugin, simply copy/paste the **\<script>** code from your [**Harness Admin Dashboard - Website Code**](https://admin.harnessapp.com/settings/website-code) page and past it in the **"Scripts in Header"** section

\
**If you need more help:**\
The "Header and Footer Scripts" documentation tutorial can be found here if needed:\
[View Tutorial](https://www.digitalliberation.org/docs/header-and-footer-scripts/?utm_source=wpdash_hfs)

![](https://downloads.intercomcdn.com/i/o/197225845/219e8de1c7c4e87401e8f4a8/headerfooter.PNG)

..... Or you can use the 2nd option below.

\=======================================================================\
**IMPORTANT:**\
The 1st option is much preferred to this option so please reach out to your web developer to make sure they're okay with updating this fill if you go with option 2\
\=======================================================================

### Option 2: Add directly to the header.php file <a href="#option-2-add-directly-to-the-headerphp-file" id="option-2-add-directly-to-the-headerphp-file"></a>

**Step 1:** Go to "Appearance", then "Editor", then "header.php".

![](https://downloads.intercomcdn.com/i/o/111524004/c254ca85fa0f96864d2ab208/find-headerphp.gif)

**Step 2:** Search for \</head>.

**Step 3:** Paste the ["Donate Button" Code](https://admin.harnessapp.com/settings/website-code)  before the closing \</head> tag.

**Step 4:** Save the code by clicking "Update File".


---

# 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://harness.gitbook.io/harness/admin/adding-the-button-to-site/word-press.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.
