Using Live Search for sitewide WP search without a specific query

Is there any trick to use the AJAX Live Search for normal WordPress search (together with Relevanssi)? In my example, I would like to use it in the header globally for the normal WordPress search. In this case, it doesn’t make sense to create a query loop (with Woo products and other post types) for this.

Does Live Search always require a Bricks query loop to work, or am I missing something? I cannot create a query loop with products and place it everywhere.

Greetings.

I use this method when I need realtime search on my site builds
/wp-json/wp/v2/posts?search=${query}

this example only working for posts but you can change the wp-json query with AI just tell whatever you want which posts types …etc

and example is for overlay search but you can change the selectors for normal input too

1 Like

Thank you very much, Sinan.