Float on every page except woocommerce Product page

You can use conditional tags to show a float on every page except ones you specify. For example if you want to show a float on all page except woocommerce product page, cart page, and checkout page then you can add this code to your functions.php file.

//function for adding float on every page except product page.
add_action( 'get_footer', 'wprevpro_addfloatcheck' );
function wprevpro_addfloatcheck() {
  if(is_product()==false && is_cart()==false && is_checkout()==false){
    //echo "is_product false";
    echo do_shortcode( '[wprevpro_usefloat tid="1"]' );
  } else {
    //echo "is_product true";
  }
}

Is this article helpful for you?