Title: prevent auto include
Last modified: August 21, 2016

---

# prevent auto include

 *  Resolved [Anisi](https://wordpress.org/support/users/anisi/)
 * (@anisi)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/)
 * could you please add an option to disable auto-include bootstrap files in header
   and footer. for situations that template’s base is bootstrap and it has already
   the bootstrap files included in it.
 * [https://wordpress.org/plugins/bootstrap-3-shortcodes/](https://wordpress.org/plugins/bootstrap-3-shortcodes/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944862)
 * Hi, Anisi,
    If you check out the FAQ ([http://wordpress.org/plugins/bootstrap-3-shortcodes/faq/](http://wordpress.org/plugins/bootstrap-3-shortcodes/faq/))
   this plugin actually doesn’t include the Bootstrap files at all on the front 
   end. This plugin actually requires the user to be using a theme built with Bootstrap
   exactly as you suggest.
 * This plugin does include the Bootstrap files in the WordPress back-end so that
   it can style its documentation.
 * Are you having a particular problem or conflict with a theme? I’d be happy to
   take a look.
 *  Thread Starter [Anisi](https://wordpress.org/support/users/anisi/)
 * (@anisi)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944922)
 * thanks for your response.
    but this code is included in the footer:
 *     ```
       <script type='text/javascript' src='http://ituts.ir/wp-content/plugins/bootstrap-3-shortcodes/includes/js/bootstrap-shortcodes-tooltip.js'></script>
       <script type='text/javascript' src='http://ituts.ir/wp-content/plugins/bootstrap-3-shortcodes/includes/js/bootstrap-shortcodes-popover.js'></script>
       ```
   
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944923)
 * Ah, I see the confusion. Those files contain the triggering code for Tooltip 
   and Popover (see details [here](http://getbootstrap.com/javascript/#tooltips)
   and [here](http://getbootstrap.com/javascript/#popovers)). This code is not part
   of the Bootstrap libraries, and, as noted in the Bootstrap documentation:
 * > **Opt-in functionality**
   >  For performance reasons, the Tooltip and Popover 
   > data-apis are opt-in, meaning you **must initialize them yourself**.
 * Since this additional code must be written specifically for the classes or IDs
   of the tooltip and popover elements, that additional javascript is included in
   our plugin to match the way we class those components.
 * If your theme already includes customized triggering code for Tooltip and Popover
   that matches the markup generated by this plugin, I would recommend dequeuing
   those two scripts in your theme’s functions.php:
 *     ```
       wp_dequeue_script( 'bootstrap-shortcodes-tooltip' );
       wp_dequeue_script( 'bootstrap-shortcodes-popover' );
       ```
   
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944924)
 * I can add that we are investigating conditionally loading these scripts only 
   when one or both of those shortcodes are used on a particular page, but we don’t
   have a timeframe for when we’ll be able to ship that functionality.
 *  Thread Starter [Anisi](https://wordpress.org/support/users/anisi/)
 * (@anisi)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944925)
 * thank you so much
 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944926)
 * Thank you for using our plugin! If you like it please consider submitting a review
   here on WordPres.org.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘prevent auto include’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bootstrap-3-shortcodes_7f6b9f.svg)
 * [Bootstrap Shortcodes for WordPress](https://wordpress.org/plugins/bootstrap-3-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-3-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/prevent-auto-include/#post-4944926)
 * Status: resolved