I want to show the search and cart widgets on click instead of hover as you look here https://joomlance.com/
I have used this Javascript code:
jQuery(document).ready(function() {
    jQuery('body').click(function(e) {
        var container = jQuery(".woodmart-search-dropdown");
        // if the target of the click isn't the container nor a descendant of the container
        if (!container.is(e.target) && container.has(e.target).length === 0) 
        {
            console.log("as Menu");
            container.hide();
        } 
    });
    jQuery('.search-button').click(function(e) {
        jQuery('div.woodmart-search-dropdown').toggle();
        console.log("Opened Menu");
        e.stopPropagation();
    });
});
But this doesn't work well, also it hide the search widget when try to write any thing and it hide the card widget when click on remove product icon and i don't work on the sticky header
how can i get this done please ?
 
     
     
    