Skip to content

The widget doesn't load

The widget shows nothing on your site, or its trigger never opens search. Work through the checks in order: each names what you see and how to fix it.

Open your site with the browser’s developer tools, on the Console and Network tabs. Filter the network list by typemo.

  1. Run the installation check. Open Install → Installation and click Verify. Typemo loads your site and looks for the snippet.

    ResultFix
    Widget found on …The snippet is live. Go to step 2.
    The page loads, but the snippet wasn’t found in its HTML.Paste the snippet into the template every page uses.
    A Typemo script was found, but with a different key …The page has another project’s key, or an old one. Copy the snippet again and replace it.
    Couldn’t reach …Your site refused the check. Look for loader.js in the Network tab yourself.

    A tag manager or a theme that adds the snippet with JavaScript can hide it from the check. If loader.js shows up in the Network tab, the snippet is there.

  2. Check the widget is on. On Search → Setup, What you are building set to API only puts no widget on your site. Pick Catalog or Docs, then save.

  3. Check the key. The console says Typemo: /init answered HTTP 404, widget not loaded when the key in the snippet was deleted or regenerated. Copy the snippet again from Install → Installation. To manage keys, see Manage API keys.

  4. Check the domain. A search that answers 403 with Add this site to the project’s allowed domains comes from a site not on the list. Add the domain on Security, staging sites included.

  5. Check the trigger. The console says Typemo: Target element ”…” not found when the selector in data-target-element matches nothing on the page. Fix the selector, or render the trigger in the page’s HTML: one a script adds after the widget loads is missed.

  6. Check the tab. When one collection is missing from the widget, open Search → Look → Tabs. A collection switched off there has no tab, but stays searchable over the API.

  • Add data-debug="true" to the script tag and reload: the console logs each step. Remove the attribute when you’re done.
  • After a change on Search → Look or Search → Setup, the widget on your site can take a few minutes to update. The dashboard preview shows it at once.

Open your site, open search and type a word. Results appear under the search field.

Next: Install the widget step by step, or set the allowed domains.