https://discord.gg/botpress logo
Different text at top and center in Webchat
# 🤝help
m
So there's text at the top and then more in the middle. They're two separate elements in the html. Is there a way to set different texts in both these fields because by default the 'Description' field is what's mirrored in both. https://cdn.discordapp.com/attachments/1374087822318895124/1374087822499123333/image.png?ex=682cc682&is=682b7502&hm=b2f37ba32ac4515cb1115b3363ba0d6345bb08d58668dc872983fe330332d854&
p
You can use the custom styles with our defined classes to modify one of them. Here's the code to change the bottom description:
Copy code
css
.bpMessageListMarqueeDescription {
    visibility: hidden;
    position: relative;
}

.bpMessageListMarqueeDescription:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "Din nya text här";
    white-space: nowrap;
}
Here's the link to the docs about Webchat styling: https://botpress.com/docs/webchat/styling-your-webchat#css-classes
m
Thank you!