My problem is when I click on search button search bar open but when I click on mini cart search bar is still open, How to close search bar when I click on the mini cart, please help me.

1 Answer 1


Add below script on your website to make it work.

    ], function ($) {
        $(document).ready(function () {
            $("body .minicart-wrapper .showcart").on("click", function(){
                $('#search_mini_form .label').removeClass("active");

Hope it helps!!!

  • 1
    Thank you its work for me @sumit Commented Sep 6, 2019 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.