Knowledge Base Widget
Embed your help articles on any website with the Knowledge Base widget.
Installation
Add this script to your website:
<script src="https://www.cstar.help/library/cstar/articles/embed.js?team=YOUR_TEAM_ID"></script>
Widget Options
Accordion Widget
Display articles in expandable categories:
<div data-cstar-kb-accordion></div>
Search Widget
Add a search box for your articles:
<div data-cstar-kb-search></div>
Article Links
Open specific articles when clicked:
<a href="#" data-cstar-article="getting-started">
Getting Started Guide
</a>
JavaScript API
Control the widget programmatically:
// Open a specific article
CStarKB.openArticle('article-slug');
// Open search with a query
CStarKB.openSearch('how to reset password');
// Open the full library
CStarKB.open();
Making Articles Public
- Go to Library in cStar
- Open the article you want to share
- Toggle Public to on
- The article will now appear in your widget!