---
title: Add custom CSS to the chat widget
description: Add your own CSS to the Ebbot chat widget to hide citations or the Show sources button, recolour buttons and fix CSS that does nothing.
---

[Skip to content](https://customer.ebbot.ai/knowledge/add-custom-css-to-the-chat-widget#main-content)

[Customer portal](https://customer.ebbot.ai/support?hsLang=en)

[![](https://customer.ebbot.ai/hs-fs/hubfs/logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png?width=1032&height=309&name=logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png)](https://customer.ebbot.ai/?hsLang=en)

- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)

Open main navigation

Close main navigation

- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)
- [Customer portal](https://customer.ebbot.ai/support)
- [Ask our support](https://customer.ebbot.ai/knowledge#ask-our-support)

[Ask our support](https://customer.ebbot.ai/knowledge?hsLang=en#ask-our-support)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Ebbot Knowledge Base](https://customer.ebbot.ai/knowledge?hsLang=en)
2. [Chat widget](https://customer.ebbot.ai/knowledge/chat-widget?hsLang=en)

# Add custom CSS to the chat widget

## Change details in the widget's look with your own CSS, for example hide the citations or recolour buttons.

## Know when to use custom CSS

Most of the widget's look is set in **Chat widget → Styling**. Custom CSS is for details that have no setting there, for example hiding an element or changing a hover colour. You add the CSS in Ebbot App. CSS in your own website's stylesheet does not reach the widget.

## Add your CSS

🚀 Let's get started:

Your CSS works on the theme you activate it on.

1. Go to **Chat widget → Custom CSS** and click **Create new CSS**.
2. Give the CSS a name, paste your CSS into it and save it.
3. Go to **Chat widget → Styling** and choose the theme your pages use in **Theme Management**.
4. Open **Advanced Customization** and turn on **Active** for your CSS.
5. Click **Save**.
6. Open your website in a new browser window and check the result.

## Hide the citations in answers

The small numbers in EbbotGPT answers are citations. To hide them:

\`\``.ebbot-cite { display: none; }`\`\`

## Hide the Show sources button

To hide the **Show sources** button under EbbotGPT answers:

\`\``.ebbot-chat-gpt-message__content__sources-btn { display: none; }`\`\`

If you only want to hide one field in the source list, you don't need CSS. See "Show or hide sources and citations in answers".

## Hide the attach files button

To hide the paperclip next to the send button:

\`\``.ebbot-chat-input-buttons .ebbot-chat-button { display: none; }`\`\`

This only hides the button. Whether the user can attach files is decided by the scenario. If you don't want to receive files at all, turn off file upload in the scenario instead.

## Recolour the buttons

Replace the colour codes with your own:

\`\``.ebbot-button { background-color: #1d6c43; color: #ffffff; border: 1px solid #1d6c43; } .ebbot-button:hover { background-color: #145233; }`\`\`

Set a border even if it has the same colour as the background. It stops the button from moving when the user hovers over it. If the hover colour does not apply, add `!important` after the value.

## Make the chat smaller on mobile

\`\``.ebbot-chat-box.ebbot-chat-box__opened-mobile { width: 95%; height: 97%; left: 5%; top: 3%; bottom: 0; right: 0; }`\`\`

## Find the name of another element

To style something that is not listed here, open your website with the widget in a browser. Right-click the part of the widget you want to change and choose **Inspect**. The developer tools show the class name of the element. Write your CSS rule for that class.

## Fix CSS that does nothing

Check these in order:

1. **Active** is off for the CSS in **Chat widget → Styling → Advanced Customization**. Turn it on and save.
2. The CSS is active on another theme than the one your pages use. This is the most common reason when the CSS works in Ebbot App but not on your website. Choose each theme your pages use in **Theme Management**, and turn on **Active** for the CSS in **Advanced Customization**.
3. The CSS is in your website's stylesheet. Move it to **Chat widget → Custom CSS**.
4. The class name is wrong. Inspect the element again and compare.

If it still doesn't work, the element may not be possible to change with CSS. Click **Support** in Ebbot App, or **Ask our support** at the top of this page, and say which element you want to change.

### 💡 Pro-Tip

Test new CSS on a theme that only covers a test page on your website. When it looks right, activate it on the themes your other pages use.

- [Getting started](https://customer.ebbot.ai/knowledge/getting-started#main-content)
- [EbbotGPT: knowledge and AI answers](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#main-content)

    - [Knowledge and sources](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#knowledge-and-sources)
    - [Persona and configurations](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#persona-and-configurations)
    - [Troubleshoot answers](https://customer.ebbot.ai/knowledge/ebbotgpt-knowledge-and-ai-answers#troubleshoot-answers)
- [Live chat](https://customer.ebbot.ai/knowledge/live-chat#main-content)
- [Chat widget](https://customer.ebbot.ai/knowledge/chat-widget#main-content)
- [TOPdesk](https://customer.ebbot.ai/knowledge/topdesk#main-content)
- [Account, login and security](https://customer.ebbot.ai/knowledge/account-login-and-security#main-content)
- [Ebbot Automations](https://customer.ebbot.ai/knowledge/ebbot-automations#main-content)
- [Scenarios and bot builder](https://customer.ebbot.ai/knowledge/scenarios-and-bot-builder#main-content)
- [Dashboards and chat history](https://customer.ebbot.ai/knowledge/dashboards-and-chat-history#main-content)
- [Channels and integrations](https://customer.ebbot.ai/knowledge/channels-and-integrations#main-content)

    - [Channels](https://customer.ebbot.ai/knowledge/channels-and-integrations#channels)
    - [Developer resources](https://customer.ebbot.ai/knowledge/channels-and-integrations#developer-resources)

- [ebbot.com](https://www.ebbot.com/)
- [Status](https://status.ebbot.ai/)
- [Developer docs](https://docs.ebbot.ai/)
- [Trust center](https://trust.ebbot.com/)
- [LinkedIn](https://www.linkedin.com/company/ebbot/)

[![](https://customer.ebbot.ai/hs-fs/hubfs/logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png?width=1032&height=309&name=logo-ebbot-darker-green-rgb-Sep-30-2025-07-46-45-0435-AM-2.png)](http://ebbot.com)

© 2026 Hello Ebbot AB