https://discord.gg/botpress logo
Customizable Titles for bpHeaderExpandedContentGro...
# 👀feature-requests
p
Hey Botpress team, I’m currently working on a project where the customer wants to customize certain fields in the bpHeaderExpandedContentGroup — for example, adding links with custom titles or providing translations. Right now, it seems only the link content can be customized. There is a workaround by changing the displayed text via CSS, but that’s not really an elegant or scalable solution. Could you add an input field for the corresponding title values as well? This would make it much easier to handle translations and display custom text without relying on CSS hacks. While it’s technically possible to override these values by embedding and manually editing the bot script directly in the website instead of just importing it, this isn’t a practical approach — especially when the bot is used on multiple pages. We want to manage these titles centrally in Botpress Studio so the customer can make changes themselves without touching the website code. Currently, an entry from the https://files.bpcontent.cloud/... looks like this:
Copy code
json
"website": {
  "title": "https://example.com",
  "link": "https://example.com"
}
But we need it to the be like this:
Copy code
json
"website": {
  "title": "Website",
  "link": "https://example.com"
}
Appreciate your time and keep up the great work!
w
Hi, you need to include
window.botpress.init()
on your page and manually change the values of the title fields. You can find an example here https://botpress.com/docs/webchat/interact/send-user-data#initialize-with-user-data. If you're interested, I posted about the need to add a title in the webchat config page here https://discord.com/channels/1108396290624213082/1339940192311840838. Please upvote if you find it helpful!
p
Thanks but I am aware of this
Copy code
While it’s technically possible to override these values by embedding and manually editing the bot script directly in the website instead of just importing it, this isn’t a practical approach — especially when the bot is used on multiple pages. We want to manage these titles centrally in Botpress Studio so the customer can make changes themselves without touching the website code.
w
yes it's not the best solution but it works until you can set them in webchat dashboard. It's used to pass variables to bot from page