How to embed a WP search form in a popup?

Hello! I am testing a popup with an embedded WordPress standard search form.
The popup is triggered by the click on a menu item “Search”, and appears correctly.
Expected behavior:
When I fill in my search term and click on the submit button, I expect the popup to close and my search results page to appear.
Instead, when I press the search submit button or if I press the “enter” key, nothing happens and the search does not start.
I have made a few tests with interactions but haven’t found yet how to make it work. What interaction should I use, if any? Thank you!

1 Like

Hi there!

Quick question: is there any reason why you can’t use the built-in search component?

Also, I couldn’t find a plugin by that name, do you mean your using the following method, “get_search_form()”?

1 Like

Hi, sorry I may have been unclear. I am using the built-in search component - no additional plugin.
Actually this component can be found in two places within the same group called “Wordpress”, they both have the same configuration options and I tested them both, by neither of them seems to start the search when I click on the search button or to I hit the “enter” key.

Maybe I found why it does not work. I did not know that I could use a search form with a pre-built “icon and overlay” mode, which is similar to the effect I wanted to obtain by embedding a simple input form in a popup. Maybe this is what @captivation was trying to suggest? So, solved!