Viewing 1 replies (of 1 total)
  • Henry N

    (@henrynguyen259)

    Hi @islamheza, to auto hide ( close ) the fly cart after 5 seconds. Please install a plugin that allows you to add javascript code to your site, eg “Insert Headers and Footers by WPBeginner” plugin. Go to Wp Admin > Settings > Insert Headers and Footers > Scripts in Footer and add the following code:

    <script type="text/javascript">
    (function($) {
    
        $(document).on( "woofc_show_cart", function( event ) {
            if ( $('body').hasClass('woofc-show') && typeof woofc_hide_cart !== 'undefined' && typeof woofc_hide_cart === 'function' ) {
                setTimeout(function() {
                    woofc_hide_cart();
                }, 5000); // 1 second = 1000 milliseconds.
            }
        });
        
    })(jQuery);
    </script>
    • This reply was modified 2 years, 5 months ago by Henry N.
Viewing 1 replies (of 1 total)
  • The topic ‘Auto Hide (close) the fly cart’ is closed to new replies.