# Hide Attachment button

**URL:** <https://community.elfsight.com/t/hide-attachment-button/161717>\
**Category:** AI Chatbot\
**Created:** [May 27, 2026, 10:15am UTC](https://community.elfsight.com/t/hide-attachment-button/161717 "2026-05-27T10:15:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [May 27, 2026, 10:15am UTC](https://community.elfsight.com/t/hide-attachment-button/161717/1 "2026-05-27T10:15:23Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your [AI Chatbot](https://elfsight.com/ai-chatbot-widget/) widget’s settings

```auto
.es-interaction-field-attach-button {
  display:none!important;
}

```

---

<div class="post-metadata">

**Author:** ![Adri](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@Adri](https://community.elfsight.com/u/Adri)\
**Post date:** [August 23, 2026, 4:20pm UTC](https://community.elfsight.com/t/hide-attachment-button/161717/2 "2026-08-23T16:20:07Z")

</div>

Not working 😔

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [August 24, 2026, 10:42am UTC](https://community.elfsight.com/t/hide-attachment-button/161717/3 "2026-08-24T10:42:34Z")

</div>

Hi @Adri 👋

Thanks for flagging this up!

Here is a slightly adjusted version that will do the trick:

```auto
.es-interaction-field-attach-button {
  display:none!important;
}

```

---

<div class="post-metadata">

**Author:** ![user23472](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/user23472/32/66605_2.png) [@user23472](https://community.elfsight.com/u/user23472)\
**Post date:** [September 10, 2026, 3:43am UTC](https://community.elfsight.com/t/hide-attachment-button/161717/4 "2026-09-10T03:43:56Z")

</div>

Max with my widget below this code doesn’t work

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [September 10, 2026, 10:12am UTC](https://community.elfsight.com/t/hide-attachment-button/161717/5 "2026-09-10T10:12:28Z")

</div>

Hi there, @user23472 👋

This and other codes added to your widgets don’t work because of the wrong comments format:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/a/ea5cda326c626cc9d4b9af6e329b3a082ea3e446.png)

  

If you’d like to add comments to the codes, please use the format below. Give it a try and let me know if it helped 🙂

`/* Comment */`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/a/2/a273b527ccfc4fcad737c92ed9e67bc8a6efeb56.png)

---

<div class="post-metadata">

**Author:** ![user23472](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/user23472/32/66605_2.png) [@user23472](https://community.elfsight.com/u/user23472)\
**Post date:** [September 10, 2026, 7:36pm UTC](https://community.elfsight.com/t/hide-attachment-button/161717/6 "2026-09-10T19:36:36Z")

</div>

Refresh the several times but got

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/3/63829e2ff87e297c37d72b056b12e3fea1faf779.jpeg)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [September 11, 2026, 6:21am UTC](https://community.elfsight.com/t/hide-attachment-button/161717/7 "2026-09-11T06:21:35Z")

</div>

As far as I see, you didn’t remove the incorrect part of the code from your widget:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/a/ea5cda326c626cc9d4b9af6e329b3a082ea3e446.png)

  

I’ve removed it from the widget and now the code is working fine:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/2/e2724226e8e8cf820146385fa434161faea09b2d.jpeg)

  

Please check it out 🙂
