Unable to type on mobile menu

[ad_1]

some more testing with history on. I see seach history and abble to click. Also abble to clear previously seached therm from search bar by click “X”, but still unable to type. No cursor here

Plugin Support
Kris

(@c0nst)

Hi @amberin!

You can use this code to ensure that clicking on the search bar in the side menu will close the menu and open the mobile overlay via the icon next to the hamburger. This should resolve the issue.

add_action( 'wp_footer', function () { 
?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('.header-search-form').on('click', function(){
$('.mfp-close').trigger('click');
setTimeout(function() {
$('.mobile-nav .js-dgwt-wcas-enable-mobile-form').trigger('click');
}, 200);
});
});
</script>
<style type="text/css">
.header-search-form-wrapper .dgwt-wcas-search-wrapp {
pointer-events: none !important;
}
</style>
<?php
}, 9999 );

You have two ways to add this code to your theme:

  1. Open the functions.php in your child theme and add the code at the end.
  2. or install the Code Snippets plugin and apply this code as a snippet.

Best regards,
Kris

Great, thank You. It was what I need. Now fixed!!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer