• Resolved maehdros

    (@maehdros)


    Hi! I started to use your plugin just today and it works pretty smoothly. There’s only a problem: the plugin by default loads its own version of Bootstrap’s JS and CSS source files, and my theme has that files already loaded as it’s based on Bootstrap itself and the only purpose of your plugin is to provide shortcode support. The additional loading triggered by the plugin it’s causing strange behaviors in dropdown toggle, for example, so I decided to add this line to my “functions.php”:

    remove_action('wp_enqueue_scripts','btsu_scripts');

    This removes the function that you use for loading Bootstrap’s libraries from WP scripts queue. It worked perfectly, but it’s a slightly untidy solution and would be a good improvement for the plugin to find a way of checking if Bootstrap’s JS and CSS files are already loaded or, if that can’t be done, at least provide a settings page in which the user can config the libraries loading.

    Cheers! And thank you very much for sharing your effort with us.

  • The topic ‘Bootstrap’s JS and CSS files double loading’ is closed to new replies.