Pro Features

Command-K Search

May 4, 2026 docsadmin 2 min read

The instant-search modal your readers will fall in love with u2014 every option explained.

The free MyWiki theme ships with elegant inline search suggestions. MyWiki Pro adds a full-screen Command-K modal u2014 readers press u2318 K (or Ctrl K) and a modal appears showing live results as they type.

Enable the modal

In Appearance u2192 Customize u2192 MyWiki Theme Options u2192 Search, set Search type to Modal (Command-K). Save.

Your existing search trigger button (top right of the header) will now open the modal instead of expanding inline.

How it works

The modal indexes published posts, pages, and categories. It searches titles, excerpts, and content. Results render with the article title, category, and a snippet of the matched text.

Keyboard shortcuts:

  • u2318 K or Ctrl K u2014 open the modal from anywhere
  • u2191 u2193 u2014 navigate results
  • Enter u2014 open the highlighted result
  • Esc u2014 close

Search analytics

MyWiki Pro logs every query that hits the modal. Visit Appearance u2192 Search Analytics to see what readers are looking for u2014 and crucially, which queries returned no results. Those zero-result queries are gold for content planning.

Search analytics is the single most useful report for documentation teams. The queries readers can’t find tell you exactly what to write next.

Performance

The modal makes a debounced AJAX request to /wp-json/mywiki-pro/v1/search. Results are returned in under 100ms on a populated site with caching enabled.

Leave a comment