').insertBefore('#sidebar-cart .Drawer__Main'); //$('#custom-free-ship-msg-cart_a').hide(); } } } if(parseInt($('.Header__CartCount').html()) > 0){ $('#custom-free-ship-msg-cart_a').show(); $('#earn-points-container').show(); } else{ $('#custom-free-ship-msg-cart_a').hide(); $('#earn-points-container').hide(); } }, 1000); }); Created with sketchtool.