# Theme templates, CSS and Markdown copies

> Override the Help Center's page wrapper from your theme, style the chatbot and Help Center safely, and use the Markdown copies and llms.txt of your help articles.

Source: https://www.wpbot.pro/help/dev-theme-templates-and-styling/  
Section: Developers › Extending and templates  
Updated: 2026-11-26

WPBot fits into your theme without template files of its own in most cases. The one template you can override is the Help Center's page wrapper. Everything else is styled with CSS.

## Override the Help Center page wrapper

Help Center pages (the home, knowledge bases, categories, articles and search results) are printed through a small wrapper template. It puts your theme's header and footer around the Help Center view:

- **Block themes:**  the theme's `header` and `footer` template parts.
- **Classic themes:**  `get_header()` and `get_footer()`.

To change it, copy `includes/help-center/templates/help-center.php` from the plugin to your theme (preferably a child theme) as:

```
wp-content/themes/your-child-theme/wpbot-help-center/help-center.php
```

WPBot finds it with WordPress's `locate_template()`, so a child theme's copy wins over the parent theme's. In your copy, print the Help Center view where you want it:

```
<?php get_header(); ?>
<div class="my-help-wrapper">
	<?php echo \QuantumCloud\HelpCenter\Front\Front::html(); // Escaped by the view. ?>
</div>
<?php get_footer(); ?>
```

Keep `wp_head()` and `wp_footer()` (through your header and footer): the Help Center's styles, scripts and the chatbot load through them. After a WPBot update, compare your copy with the plugin's file in case the wrapper changed.

Tip

For smaller changes you do not need a template: the actions `qcld_wpbot_help_center/after_article` and `qcld_wpbot_help_center/before_results` add content, and **Help Center → Settings → Design** switches between the **Help Center**, **Docs** and **Simple** layouts. See [Help Center hooks](/help/dev-help-center-hooks/).

## Style the Help Center

Help Center pages get the body classes `wpbot-help-center` and `wpbot-help-center--{layout}` (`help-center`, `docs` or `simple`). The **Simple** layout and the shortcodes, blocks and widgets follow your theme's fonts and colours, with the Help Center's accent colour. Scope your CSS to these classes so it never touches other pages:

```
.wpbot-help-center--docs .wpbot-hc-main {
	max-width: 1280px;
}
```

## Style the chatbot

The chat window is not a theme template. Change its look in **WPBot Pro → ChatBot**: **Customize ChatBot Design** (window design and colours), **Customize ChatBot Icons** (the chat button) and, for anything else, **Custom CSS**. CSS saved there is added on every page with the chatbot, and survives updates.

Useful selectors:

| Selector | Element |
| --- | --- |
| `#wp-chatbot-chat-container` | The whole floating chatbot |
| `#wp-chatbot-ball`, `.wp-chatbot-ball` | The chat button |
| `.wpbot-click-chat` | Your own elements that open the chat |
| `.qc_wpbot_chat_link` | Links printed by `[wpbot-click-chat]` |

Warning

Avoid hiding the chat container with `display: none` from your theme to turn the chatbot off on some pages. WPBot then still loads its scripts there. Use **Page Control Bot Loading Options** in the ChatBot settings instead; see [The chatbot does not show or does not open](/help/ts-chatbot-does-not-show/).

## Markdown copies and llms.txt of help articles

Search engines and AI assistants read plain text best, so every public help article also has a Markdown copy at its address plus `.md`:

```
https://example.com/help/getting-started-with-wpbot.md
```

The copy is announced with `<link rel="alternate">` in the article's head, is not indexed and points to the article as canonical. The Help Center also serves `llms.txt` at its own address (`/help/llms.txt` with the default address), listing public articles by category with links to their Markdown copies. When SEO & AI Search publishes your site's own `llms.txt`, it links to the Markdown copies of help articles too.

If you change the Help Center's address in its settings, the last ten earlier addresses redirect to the new one.

## Hide parts of a page from Site Insight

Add `qcin-mask` (mask the text) or `qcin-block` (leave the element out) to elements that should not appear in session recordings. Form inputs are always masked.

## Availability

In every edition, including WPBot Free. The Pro chat window designs come with every WPBot Pro edition.
