Tagged: jquery conflict
We are using WooCommerce to sell a product.
We have a plugin installed that helps us customise the fancy product we are selling. Using the enfold theme it seems that there is a conflict with the tabs jquery module and the fancy product module we are needing to use. Are we able to turn off, comment out, remove the module from the theme so that our plugin can work?
Thanks in advance for any advice.
Hey webtigerwebsites,
Try adding this code in your child theme’s functions.php:
function remove_tabjs() {
wp_dequeue_script( 'avia-module-tabs' );
wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
}
add_action( 'wp_enqueue_scripts', 'remove_tabjs', 100 );
Hope it helps.
Best regards,
Nikko
Not quite it. Thank you so much though, for your time.
Hi,
Do you still need assistance?
Best regards,
Basilis