How to hide class or div in cart and checkout page in wordpress woocommerce?

Woocoders
Woocoders
2nd September 2020
<script>

$(document).ready(function() {

  if( $("h2:contains('Cart Totals')").length) {
   
    $('.sticky').css('display', 'none');
 
  }

else if( $("h3:contains('Billing Address')").length) {

 $('.sticky').css('display', 'none');
}
else
{
       $('.sticky').css('display', 'block');
}

});

</script>

Share this post: