# How to embed a #jedidesk widget in WordPress

1. [**Create a #jedidesk widget**](https://docs.jedidesk.com/english/widget/how-to-create-a-jedidesk-widget) and copy the generated code.
2. Log in as an administrator on your [**WordPress**](https://wordpress.com/log-in/) site or **WooCommerce** online store.
3. Open the **Appearance -> Theme File Editor** tab.
4. Select the one you are using from the list of installed themes and click on the **Theme Footer** template called **footer.php**.
5. Paste the chat code #jedidesk before the <mark style="color:red;">**\</body>**</mark> tag and click <mark style="background-color:blue;">**Update File**</mark>:

<figure><img src="https://2421713157-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizQzM1n6iqF17cIYxrec%2Fuploads%2FajqGPgALrv1o7HhIWCqQ%2FENG_WordPress.png?alt=media&#x26;token=4e704f7b-4325-4662-899a-edff818229bf" alt=""><figcaption><p>How to embed a #jedidesk widget in WordPress</p></figcaption></figure>

{% hint style="success" %}

#### Supplements and additional methods

1. Most themes have a special place to insert additional code for analytics or other scripts. First, it is recommended to look for such a place in your topic.
2. If you can't find the **footer.php** file, you can similarly insert the widget code into the **header.php (Theme Header)** file before the opening <mark style="color:red;">**\</body>**</mark> tag.
   {% endhint %}
