If you want to location filter field to autowipe when the user clicks on the field to enter a new location, instead of having to backspace the full text.
JS Code SnippetOn the page you want this to appear, add an HTML widget (FREE) and paste the code in there. Be sure to have < script> before your code and after the code if it isn't already inserted above.
Instructions
You can use JavaScript to add a focus event, e.g. Templates/widgets/search-form/location-filter.php Copy to child theme