This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Users Search

#28753
Ernest MarcinkoErnest Marcinko
Keymaster

I understand, but the plugin issue was resolved – and was not caused by the plugin, although I was not able to find the exact cause.

I cannot do custom jobs unfortunately, but I can of course help with suggestions. The API function needed here is this:

ASP.api(19, "toggleSettings", "show");

This should be attached to an event handler on the input change event. With that, this final code should be placed into the functions.php file in the theme directory:

add_action("wp_footer", "asp_show_settings");
function asp_show_settings() {
	?>
	<script>
	jQuery(function($){
		$('input.orig').on('keyup', function(){
			ASP.api(19, "toggleSettings", "show");
		});
	});
	</script>
	<?php
}

This may not be the full solution, probably mobile detection or things like that need to be added – but this should be the core of it. The search ID number (19) might be different, I was guessing based on the home page.