> For the complete documentation index, see [llms.txt](https://docs.jedidesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jedidesk.com/english/widget/opening-a-widget-by-clicking-a-button-on-the-site.md).

# Opening a widget by clicking a button on the site

You can open the #jedidesk widget using a button or link on your site.

{% hint style="info" %}
To hide the default launcher, open **Widget settings → Behavior and contacts (Поведінка й контакти)**, enable **Hide widget on site (Приховати віджет на сайті)** and save. The mini-widget format is configured separately in **Placement (Розміщення)**. The website-button classes below are independent of the MINI plan name.
{% endhint %}

If you want to add a “**Contact**” button to your site, and when you click on it, a chat window with an operator will open. This is convenient, since the client can immediately ask a question without waiting for long answers by mail.

You also have the opportunity to completely hide the widget, which will only open when you click on the button, if you use the events described below:

<figure><img src="https://2421713157-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizQzM1n6iqF17cIYxrec%2Fuploads%2FtCF2xW7wRB2h0KJvl3i5%2Fclosure-widget-behavior.jpg?alt=media" alt="Widget behavior"><figcaption><p>Widget behavior</p></figcaption></figure>

{% hint style="info" %}
For this type of work, we recommend that you contact a programmer or person who can go into the source code and safely add the required selector (class).
{% endhint %}

1. [Install the widget](https://docs.jedidesk.com/english/widget/how-to-create-a-jedidesk-widget.md) on your website;
2. Add a class to your button on your website:\
   `jedidesk_widget--open-button`
3. To close the widget, add the class to the button:\
   `jedidesk_widget--close-button`
4. If everything is done correctly, after pressing the button, a chat with the operator will be opened, and the system will already send the client a welcome message 👋
