I feel like this should be simple, but I’m struggling.
I want to pass the user input of a field into the confirmation redirect url for a search box.
I have created a simple search form using the WPSunshine add on, and want the submit button to redirect to the search page with the search term the user has typed in
You can also use jQuery to pass the user input to the button URL. So when someone types and clicks on the button, it will open the search result page with the user input as the search query.
The following code can be used in the Child theme JavaScript file, or you can try the “Simple Custom CSS and JS” plugin.