Plugin Author
ka2
(@ka2)
Thank you for your inquiry.
I was also concerned that JavaScript conflicts occurs depending on the themes and other plugins.
Therefore I am going to add the options that is able to corresponding to the script
conflicts to the management screen since the next version.
Please wait for a while.
Plugin Author
ka2
(@ka2)
By using the “cdbt_assets” filter, you can change the loading of JavaScript and CSS in a particular page. Filter hook is available by adding to the “functions.php” in your theme as follows.
function custom_load_assets( $assets ) {
if (is_singluar()) {
unset($assets['scripts']['cdbt-jquery']);
}
return $assets;
}
add_filter( 'cdbt_assets', 'custom_load_assets' );
At the above example, in the singluar page does not load the jQuery that is bundled with the cdbt plugin. However, in order to carry out the processing of CDBT plugin you need to load a separate jQuery.
Thank you,
Hi,
I guess the above solution does not solve the issue of multiple jquery copies as a seperate jquery is required for cdbt. Is it possible for you to alter the code so that cbdt uses the jquery loaded by wp instead of using a new copy?
Plugin Author
ka2
(@ka2)
That’s certinly true.
In the next version, I’m going to add an option that you can choose whether to use the jQuery of this plugin, or the jQuery that is bundled within the WordPress core. As a result, I believe that multiple jQuery will be able to avoid conflicts due to be loaded.
Thank you,