Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    The only way to do this (and it may not work on all mobile devices) is programmatically whenever the results box is displayed.

    Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

    add_action('wp_footer', 'wp_footer_my_script');
    function wp_footer_my_script() {
    	?>
    	<script>
    	var observer = new MutationObserver(function(){
    		document.activeElement.blur();
    	});
    	document.querySelectorAll('.asl_r').forEach(function(parent){
    		observer.observe(parent, { attributes: false, childList: true, subtree: true });
    	});
    	<script/>
    	<?php
    }

    Best,
    Ernest M.

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the on-screen keyboard in the search’ is closed to new replies.