• Resolved amberin

    (@amberin)


    Hi all,

    Unable to type anything when open seach from mobile menu. Just narrow a bit desktop windows to test till hamburger menu appears. But works OK from header icon both mobile and desktop. Overlay on mobile checked.

    Fixer code did not solved. Console jQuery(‘#jquery-dgwt-wcas-js’).length; returns 1. Flatsome theme.

    Just tested to disable overlay on mobile and was abble to type. Only problem to type from hamburger menu overlay on mobile

    Any ideas to fix?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter amberin

    (@amberin)

    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

    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

    Thread Starter amberin

    (@amberin)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.