https://discord.gg/botpress logo
Close Button
# 🤝help
h
I want to get rid of the close button on my chatbot but the close button is not working. I am just using a basic configure script with the showCloseButton set to false which I have included below. I have tried to move the line showCloseButton outside of config in the init but that has not worked, I also tried changing the version hosting the bot to 2.3 from 2.2 but neither made any difference. This bot is hosted on a website made with webflow if there are considerations to be made there. "configuration": { "botName": "East Daley Consultant", "botDescription": "Welcome to your Consulting Assistant. To get started, type your role into the chat bar and hit enter.", "website": {}, "email": {}, "phone": {}, "termsOfService": {}, "privacyPolicy": {}, "color": "#08346c", "variant": "solid", "themeMode": "light", "fontFamily": "inter", "radius": 2, "showPoweredBy": false, "showCloseButton": false }, https://cdn.discordapp.com/attachments/1368990918002348112/1368990918686015558/Screenshot_2025-05-05_at_11.34.19_AM.png?ex=681a3ba5&is=6818ea25&hm=2e74a47d636b6285f10360e3fb7801d8409399f74ca6357d9eebe7f1c23d9754&
w
you have to use custom css
target the class of the close button and add display:none
h
does it make more sense to leave the config code the same or delete the line with the showCloseButton?
w
delete the line, it doesn't change anythinh
h
do you know which class the close button is in? I've tried bpHeaderContentActionsContainer and bpw-header-icon, bpNotificationCloseIcon, bpModalDialogTitleCloseIcon and none of them have worked
never mind got it thank you for your help 😀
a
for future reference just inspect elem
b
Did you find a solution ?
The reload and the close button got the same class: bpHeaderContentActionsIcons
How to hide only one ?
w
put this in the custom style on dashboard
Copy code
css
.bpHeaderContentActionsContainer > svg:nth-of-type(2) {
    display: none !important;
}
b
It's working thank you