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

Reply To: problem with search in mobile

#31442
Ernest MarcinkoErnest 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
}