Meta tags:
description= You can choose to add a custom icon for the knowledge base assistant. This go well to carry your brand theme.;
Headings (most frequently used words):
the, widget, hide, step, custom, javascript, in, option, css, to, tab, change, open, button, knowledge, base, add, customize, page, help, default, and, set, bar, article, select, customizing, using, documentation, index, when, use, before, you, begin, or, best, practices, faq, built, controls, keep, active, if, switches, icon, dark, theme, field, labels, text, inside, automatically, search, for, single, url, mapping, project, version, language, new, expand, maximize, move, drag, entire, header, html, it, by, up, callback, functions, register, callbacks, snippet, make, apply, styling, document360, top, features, support, contact, us,
Text of the page (most frequently used words):
the (108), #widget (81), tab (33), and (28), javascript (27), custom (26), knowledge (25), base (25), css (25), #button (23), doc360 (21), hide (19), function (19), click (19), modal (18), page (16), this (15), article (14), your (14), important (13), open (13), document360 (12), help (12), document (11), search (10), display (10), none (10), you (10), section (9), icon (9), snippet (8), for (8), html (8), color (8), getelementbyid (8), version (8), integrations (7), assistant (7), paste (7), active (7), removes (7), extensions (6), widgets (6), url (6), mapping (6), add (6), iframe (6), with (6), save (6), hover (6), step (6), doc360_help_btn (6), controls (6), that (6), use (6), language (6), support (5), documentation (5), top (5), from (5), not (5), header (5), into (5), over (5), edit (5), current (5), replace (5), using (5), script (5), classlist (5), option (5), select (5), built (5), feedback (4), styling (4), callback (4), before (4), element (4), settimeout (4), link (4), text (4), change (4), background (4), black (4), fjs (4), based (4), default (4), kbtab (4), new (4), users (4), move (4), expand (4), dropdown (4), want (4), 2026 (4), policy (3), about (3), analytics (3), api (3), site (3), features (3), configure (3), articles (3), inside (3), functions (3), works (3), because (3), single (3), 2000 (3), bar (3), let (3), below (3), set (3), labels (3), white (3), span (3), eddy (3), btn (3), navigate (3), connections (3), dark (3), theme (3), settings (3), callbacks (3), show (3), are (3), only (3), remove (3), control (3), class (3), customize (3), does (3), switch (3), switchtokb (3), const (3), pagetab (3), contains (3), true (3), code (3), desired (3), drag (3), project (3), ask (3), our (2), 3000 (2), com (2), contact (2), drive (2), ticket (2), deflector (2), workflow (2), private (2), hosting (2), security (2), request (2), customization (2), branding (2), troubleshooting (2), next (2), was (2), domain (2), same (2), image (2), size (2), application (2), avoid (2), appearance (2), which (2), clicks (2), also (2), changes (2), written (2), note (2), container (2), back (2), contents (2), find (2), trigger (2), automatically (2), ready (2), tabs (2), last (2), child (2), title (2), input (2), each (2), val (2), attr (2), placeholder (2), filter (2), own (2), field (2), apply (2), any (2), start (2), window (2), https (2), key (2), doc360_callback (2), doc360_show_callback (2), doc360_hide_callback (2), include (2), hiding (2), pages (2), when (2), loads (2), these (2), visibility (2), floating (2), content (2), classes (2), has (2), real (2), uses (2), toggling (2), way (2), user (2), observer (2), need (2), switches (2), sections (2), instead (2), entire (2), close (2), have (2), applying (2), handle (2), sec (2), snippets (2), access (2), selector (2), available (2), claude (2), chatgpt (2), view (2), markdown (2), copy (2), llms (2), customizing (2), ctrl (2), glossary (2), november (2), docs (2), review (2), file (2), index (2), soc2, cookie, privacy, trust, center, terms, careers, culture, team, rating, status, seo, platform, portal, enterprise, readiness, migration, demo, resources, pricing, customers, tags, issues, migrating, related, previous, yes, helpful, rendered, cross, due, browser, restrictions, origin, cannot, modified, parent, can, adjust, faq, scope, selectors, specifically, elements, conflicts, product, existing, test, both, desktop, mobile, deploying, always, combine, toggle, showing, two, entry, points, best, practices, above, under, without, listed, originally, limited, length, popular, category, values, div, textarea, e4e4e7, match, website, colors, font, styles, additional, effects, jquery, addeventlistener, contentdocument, pure, make, push, arguments, createelement, getelementsbytagname, src, async, parentnode, insertbefore, cdn, static, init, apikey, show_callback, hide_callback, end, modify, found, register, necessary, specific, after, being, hidden, state, them, files, tag, internally, mounts, changing, directly, lasting, effect, since, app, treat, clicking, supported, interaction, correctly, triggers, why, where, watches, checks, whether, become, would, what, switchtokbifneeded, return, mutationobserver, observe, body, childlist, subtree, attributes, attributefilter, style, following, some, implementations, stay, even, during, applies, previously, handled, approach, longer, currently, simulate, whenever, becomes, keep, ensure, another, dismiss, warning, selection, whole, row, lets, repositioned, collapse, enlarges, full, screen, maximize, shown, opened, individual, don, expose, panel, then, needed, must, understand, basic, begin, load, suppress, context, such, relevant, other, visual, properties, via, navbar, separate, extend, behavior, beyond, common, replacing, programmatically, controlling, modifying, prev, summary, plain, print, listen, focus, minute, read, published, mar, 2024, updated, aug, powered, press, community, feature, self, service, october, release, notes, manage, integrate, manager, import, export, reminder, collaboration, tasks, interactive, decision, trees, fields, management, templates, variables, advanced, editor, sign, role, multiple, workspaces, languages, readers, creators, track, roles, permissions, invite, publish, create, quick, discover, all, exploring, further, fetch, complete, txt,
Text of the page (random words):
customizing the knowledge base widget using custom css javascript documentation index fetch the complete documentation index at https docs document360 com llms txt use this file to discover all available pages before exploring further quick start create an article review article publish article customize site invite users set up roles permissions track analytics eddy ai features for creators for readers for integrations key features multiple workspaces languages role based access control single sign on private hosting advanced editor templates variables snippets glossary drive file management custom fields interactive decision trees collaboration tasks custom workflow review reminder import export project site customization custom domain integrations extensions analytics feedback manager api documentation integrate with document360 manage your api docs release notes november 2026 12 11 2 november 2026 12 11 1 october 2026 12 10 2 help troubleshooting self service support ask for a feature community glossary search ctrl k press ctrl k to open search powered by customizing the knowledge base widget using custom css javascript updated on aug 17 2026 published on mar 12 2024 6 minute s read focus listen print copy page copy as markdown for llms view as markdown view the page as plain text open in chatgpt ask chatgpt about this page open in claude ask claude about this page article summary prev next the custom css javascript tab in the widget settings which contains separate css and javascript sections let you extend the widget s appearance and behavior beyond the built in styling controls common uses include replacing the widget icon with a custom button programmatically controlling widget visibility applying a dark theme or modifying field labels and widget text when to use custom css javascript you want to trigger the widget from a custom button e g a help link in your navbar instead of the default floating icon you want to change the widget s dark theme or other visual properties not available via the built in styling controls you want to hide built in widget controls such as the version selector language selector expand icon or drag handle that are not relevant to your users you need to automatically open the widget on page load or suppress it based on user context before you begin you must have access to widget settings in document360 and understand basic html css and javascript add custom css or javascript navigate to connections knowledge base widget hover over the desired widget and click edit select the custom css javascript tab then use the css or javascript section as needed paste your code into the code panel click save customize widget 2 0 hide built in widget controls use these snippets to remove individual built in controls from the widget that you don t want to expose to your users add the desired snippet to the css section of the custom css javascript tab and click save hide the project version select option removes the version dropdown from the widget header doc360 widget modal project version dropdown doc360 widget modal version select sec display none important hide the language select option removes the language dropdown from the widget header doc360 widget modal language dropdown doc360 widget modal language version select sec display none important hide the open article in new tab option removes the open in new tab icon shown on an opened article doc360 widget modal article open new display none important hide the expand maximize option removes the expand icon that enlarges the widget to full screen doc360 widget modal expand collapse display none important hide the move drag option removes the drag handle that lets the widget be repositioned doc360 widget modal move window doc360 widget modal move icon display none important hide the entire header bar removes the whole top control row version language move and close doc360 widget modal version selection display none important warning hiding the entire header bar also removes the close button ensure your users have another way to dismiss the widget before applying this snippet keep the knowledge base tab active if the widget switches to page help some implementations need the knowledge base tab to stay active even if the widget switches to the page help tab during use this applies to widget 2 0 if you previously handled this in widget 1 0 by toggling css classes on the page help and knowledge base sections that approach no longer works because widget 2 0 only loads the currently active tab s content into the page instead simulate a click on the knowledge base tab element whenever the page help tab becomes active navigate to connections knowledge base widget hover over the desired widget and click edit open the custom css javascript tab and use the javascript section paste the following script and click save this code is written in javascript function switchtokbifneeded function switchtokb const kbtab document getelementbyid knowledge base tab const pagetab document getelementbyid page help tab if kbtab pagetab return if pagetab classlist contains current kbtab classlist contains current kbtab click const observer new mutationobserver function switchtokb observer observe document body childlist true subtree true attributes true attributefilter class style switchtokb what this does watches the widget for changes and checks whether the page help tab has become active if so it clicks the knowledge base tab element to switch back the same way a user would why this works in widget 2 0 where class toggling does not widget 2 0 controls the active tab internally and only mounts the active tab s content changing css classes directly has no lasting effect since the app does not treat that as a real tab switch clicking the tab element uses the widget s own supported interaction so it correctly triggers a real tab switch customize widget 1 0 change the default widget icon replace the default floating widget icon with a custom button on your page step 1 add a custom html button button id doc360_help_btn class btn hide span help span button step 2 hide it by default in css hide display none step 3 set up callback functions in javascript these callbacks control the button s visibility based on the widget s state add them to any of your javascript files or inside a script tag show button when widget loads function doc360_callback document getelementbyid doc360_help_btn classlist remove hide show button after being hidden by url mapping function doc360_show_callback document getelementbyid doc360_help_btn classlist remove hide hide button based on url mapping function doc360_hide_callback document getelementbyid doc360_help_btn classlist add hide note the show and hide callbacks are only necessary if you are hiding the widget on specific pages using url mapping step 4 register callbacks in the widget javascript snippet modify the widget s javascript snippet found in the widget settings to include your callback functions document360 knowledge base assistant start script function w d s o f js fjs w js assistant o w o w o function w o q w o q push arguments js d createelement s fjs d getelementsbytagname s 0 js id o js src f js async 1 fjs parentnode insertbefore js fjs window document script mw https cdn document360 io static js assistant js mw init apikey your key callback doc360_callback show_callback doc360_show_callback hide_callback doc360_hide_callback script document360 knowledge base assistant end step 5 make the button open the widget using pure javascript document getelementbyid doc360_help_btn addeventlistener click function document getelementbyid document360 assistant iframe contentdocument getelementbyid doc360 button click using jquery doc360_help_btn click function document360 assistant iframe contents find doc360 button click step 6 apply custom styling to the button apply any custom css to the button to match your website s branding colors font styles or additional effects change the dark theme navigate to connections knowledge base widget hover over a widget and click edit open the custom css javascript tab paste the snippet below into the css section and click save doc360 widget modal background color black color white doc360 widget modal div doc360 widget modal li doc360 widget modal p doc360 widget modal ul doc360 widget modal span doc360 widget modal input doc360 widget modal textarea color white important background color black important doc360 widget modal button color white important eddy feedback btn hover color black important background color e4e4e7 important eddy feedback btn background color black important change field labels and text inside the widget hover over a widget and click edit open the custom css javascript tab and paste the snippet below into the javascript section replace the text values with your own labels and click save document ready function if tab link current length 0 tab link current html tab link current html replace page help support tabs li last child html tabs li last child html replace knowledge base documentation settimeout function top search title html top search title html replace top search articles popular articles 3000 document ready function search input each function if this val this attr placeholder search category filter each function if this val this attr placeholder filter set the widget to open automatically hover over a widget and click edit open the custom css javascript tab paste the snippet below into the javascript section and click save function settimeout function let iframe document360 widget iframe let button iframe contents find doc360 button button trigger click 2000 hide the page help tab and search bar for a single article url mapping paste in the css section of the custom css javascript tab li page help tab display none article header article back icon display none search container display none important paste in the javascript section of the custom css javascript tab settimeout function search container hide 2000 settimeout function knowledge base tab click 2000 note the custom javascript snippet above which clicks the knowledge base tab element also works under widget 2 0 without changes it is listed in this section because it was originally written for single article url mapping not because it is limited to widget 1 0 best practices always combine the hide widget toggle in appearance with a custom button to avoid showing two entry points test callback functions on both desktop and mobile before deploying scope your custom css selectors specifically to widget elements to avoid conflicts with your product s existing css faq can i adjust the widget s button image size in a custom application no the document360 widget is rendered inside a cross domain iframe and due to browser security restrictions same origin policy the button image size cannot be modified from the parent application was this article helpful yes no previous article add a ticket deflector to the knowledge base widget next article url mapping related articles configure the knowledge base widget integrations extensions widgets widgets configure the knowledge base widget migrating to knowledge base widget v2 integrations extensions widgets troubleshooting integrations extensions widgets issues styling and branding the knowledge base widget integrations extensions widgets widgets configure the knowledge base widget tags widget customization document360 customers pricing resources request a demo migration request security private hosting enterprise readiness top features knowledge base portal knowledge base site knowledge base assistant integrations and extensions platform api analytics workflow ticket deflector drive seo support documentation support status feedback contact us contact us support document360 com rating 4 7 3000 about us our team our culture careers terms trust center privacy policy cookie policy soc2
|