/**
* Don't enqueue Bootstrap on WC Products archive
*/
function dequeue_bootstrap(){
if ( is_page( 'finalitza-la-compra' )) {
// dequeue Bootstrap CSS
function dequeue_bootstrap_css(){
wp_dequeue_style( 'toolset_bootstrap_styles' );
wp_dequeue_style( 'toolset_bootstrap_4' );
}
add_action( 'wp_print_styles', 'dequeue_bootstrap_css' );
// dequeue Bootstrap JS
function dequeue_bootstrap_js(){
wp_dequeue_script( 'toolset_bootstrap' );
wp_dequeue_script( 'toolset_bootstrap_4' );
}
add_action( 'wp_print_scripts', 'dequeue_bootstrap_js' );
}
}
add_action( 'wp_enqueue_scripts', 'dequeue_bootstrap', 100 );
Vist a toolset: https://toolset.com/errata/bootstrap-4-columns-classes-col-1-and-col-2-conflicts-with-woocommerce/
You can follow this thread on WooCommerce GitHub page for a stable solution:
https://github.com/woocommerce/woocommerce/issues/15793As a workaround, for now, you can de-queue Bootstrap on the checkout page using a custom code snippet like this one.
Of course, you’d have to change its condition to is_page( 'checkout' );
.