Disable Specific Attachment Buttons

You are here:

When checking “Allow sharing of files, photos, and sending audio & video messages“, you can send multimedia attachments with these buttons:

If you wish to hide a specific button, you may use the CSS codes below:

  • To remove “Add file” button:

.upload-dialog-box>button:nth-child(1) {
display: none;
}

  • To remove “Take photo” button:

.upload-dialog-box>button:nth-child(2) {
display: none;
}

  • To remove “Record audio” button:

.upload-dialog-box>button:nth-child(3) {
display: none;
}

  • To remove “Record video” button:

.upload-dialog-box>button:nth-child(4) {
display: none;
}

Categories