# Install for WordPress

This tutorial will show you how to install the NiftyKit Diamond Widgets on your WordPress.&#x20;

To start, make sure you're in the WordPress page builder.

### 1. Switch to "Code Editor" mode

Depending on your theme or plugins, this view might be different; please refer to the following helpful links:

* <https://wordpress.com/support/editors/>
* <https://www.wpbeginner.com/wp-tutorials/how-to-edit-html-in-wordpress-code-editor-beginners-guide/>

![Highlighted in blue is the Code editor mode](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FvMuIhImEMuxiqEl0J3IY%2Fcode-editor.png?alt=media\&token=e2c0b507-ae30-4756-9269-1c4522b58cfd)

### 2. Paste your SDK widget code

```html
<!-- Import NiftyKit Widgets library -->
<script type="module" src="https://sdk.niftykit.com/widgets/widgets.esm.js"></script>

<nk-diamond collection-id="YOUR-SDK-KEY">
  <nk-is-not-connected>
    <nk-connect-wallet-button>
      Connect Wallet
    </nk-connect-wallet-button>
  </nk-is-not-connected>
  <nk-is-connected>
    <nk-drop-mint-button success-title="Success!" success-message="You did it!">
      Mint NFT
    </nk-drop-mint-button>
  </nk-is-connected>
</nk-diamond>
```

Be sure to replace `YOUR-SDK-KEY` it with your actual SDK key.

### 3. Update your mint page

![](https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FjFWuf5WnDGWwtVStdFaC%2FScreen%20Shot%202022-03-30%20at%201.41.51%20PM.png?alt=media\&token=034bd4b4-087c-4cac-8e3f-d3dda25c257e)

{% hint style="info" %}
This also works in Elementor if you embed the HTML element.
{% endhint %}


---

# 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://docs.niftykit.com/customize-your-experience/niftykit-diamond-widgets/installation-guides/install-for-wordpress.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.
