woocommerce jquery files are missing
-
Hello. on my own theme not working at single product page any tabs or lightbox of woocommerce. what is problem ? maybe i didn’t add to my time jquery files of woocommerce
here my functions.php
add_theme_support( ‘woocommerce’ );
/** */ add_filter( 'woocommerce_enqueue_styles', '__return_false' ); // Remove each style one by one add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); function jk_dequeue_styles( $enqueue_styles ) { unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation return $enqueue_styles; } // Or just remove them all in one line add_filter( 'woocommerce_enqueue_styles', '__return_false' ); function wp_enqueue_woocommerce_style(){ wp_register_style( 'woocommerce', get_template_directory_uri() . '/css/woocommerce.css' ); if ( class_exists( 'woocommerce' ) ) { wp_enqueue_style( 'woocommerce' ); } } add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' ); /** */
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘woocommerce jquery files are missing’ is closed to new replies.