problem with search in mobile

Home Forums Product Support Forums Ajax Search Pro for WordPress Support problem with search in mobile

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31438
    oryan07
    oryan07
    Participant

    hey,
    i have problem with search in mobile
    1. When you tap on the search field the keyboard does not pop up (need tap harder to open it )
    i dont sure what need to do to fix it
    hope you can help me there
    Thank

    #31442
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Because both the menu plugins work individually, these features have to be custom coded. I might be able to recommend something though. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

    add_action('wp_footer', 'asp_menu_input_focus');
    function asp_menu_input_focus() {
    	?>
    	<script>
    	jQuery(function($){
    		var t;
    		$('.elementor-menu-toggle').on('touchend', function(){
    			if (!$(this).hasClass('elementor-active')) {
    				clearTimeout(t);
    				t = setTimeout(function(){
    					$('.elementor-nav-menu--dropdown .proinput input.orig').get(0).focus();
    					console.log('sup');
    				}, 500);
    			}
    		});
    	});
    	</script>
    	<?php
    }
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #31460
    oryan07
    oryan07
    Participant
    You cannot access this content.
    #31466
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Oryan,

    It works whenever the compact search is opened. Try turning off the compact search box feature, that should resolve it.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.