https://discord.gg/botpress logo
Chat icon styling
# 🤝help
c
p
Have you tried applying that to your website's style section?
c
no. just inside botpress
Still, can't see any change.
Using the following css
Copy code
<style>
/* Make the launcher rectangular with round edges */
    .bpFabContainer {
        width: 160px !important;     /* Wider for rectangle */
        height: 60px !important;     /* Shorter height */
        border-radius: 12px !important; /* Rounded edges */
        box-sizing: border-box;
        background-color: #0066ff !important; /* Optional: custom background */
    }

/* Center and resize the icon inside */
    .bpFabIcon {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px !important; /* Adjust based on icon type */
        box-sizing: border-box;
        border-radius: 12px !important;
    }

</style>
but styles do not apply
p
Have you tried clearing your cache and reopening the website?
c
yes
same
issue
Can you please open the website through the URL I have shared above?
p
When attempting to configure it in the dashboard, are you saving your configurations?
c
yes!!
p
Have you followed the wordpress setup docs, when I opened you website on chrome the webchat didn't work?
c
that's another issue. you need to open the website and then refresh page
webchat will then work
p
Hi guys, I added custom CSS on Webchat config, tab Theme.. Styles.. and tried to put in my website also, but the text is still displayed in English. For example, in the header: - Terms of Service - Privacy Policy When you press the "Recover" button, Title: Create new conversation Buttons: "New conversation" and "Cancel". I used this CSS inserted into a WordPress plugin, but it doesn't work. Can anyone help me?
Copy code
||<style>
.bpModalDialogContent {
    position: relative;
}

.bpModalDialogNewConversationText {
    visibility: hidden;
    position: relative;
}

.bpModalDialogNewConversationText:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "¿Quieres iniciar una nueva conversación desde cero?";
}


.bpModalDialogNewConversationButton {
    visibility: hidden;
    position: relative;
}
.bpModalDialogNewConversationButton:after {
    visibility: visible;
    left: 0;
    content: "Empezar de nuevo";
    color: initial;
    white-space: nowrap;
    padding-top: var(--bpSpacing-1);
    padding-bottom: var(--bpSpacing-1);
    padding-left: var(--bpSpacing-2);
    padding-right: var(--bpSpacing-2);
    margin-top: var(--bpSpacing-4);
    border-radius: calc(var(--bpRadius-scale) * var(--bpRadius-md));
    color: var(--bpGray-1);
    background: var(--bpPrimary-500);
    align-self: end;
    cursor: pointer;
}

.bpModalDialogTitleText {
    visibility: hidden;
    position: relative;
}

.bpModalDialogTitleText:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "Nueva conversación?";
    white-space: nowrap;
}
</style>||
https://cdn.discordapp.com/attachments/1385274629173547200/1387532624456712232/image.png?ex=685daff4&is=685c5e74&hm=09d176c223236e2d0e5262fba5595c269d1393ff5b571dae1cf41fdff91de5d5& https://cdn.discordapp.com/attachments/1385274629173547200/1387532624750186686/image.png?ex=685daff4&is=685c5e74&hm=ad3a9d1cebc1563030cac21cedf72c48fa5ce1e382a15e4c0aeeb2475d62a2f4&
3 Views