[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:
- Open the
functions.php
in your child theme and add the code at the end. - 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!!