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 2 years, 4 months ago.
- AuthorPosts
- February 3, 2021 at 5:59 pm #31438
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
ThankFebruary 4, 2021 at 3:52 pm #31442Hi,
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 }
-
This reply was modified 2 years, 4 months ago by
Ernest Marcinko.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
February 4, 2021 at 6:37 pm #31460You cannot access this content.February 5, 2021 at 9:29 am #31466Hi 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 :)
-
This reply was modified 2 years, 4 months ago by
- AuthorPosts
You must be logged in to reply to this topic.