Title: Bootstrap conflict/script loading
Last modified: August 22, 2016

---

# Bootstrap conflict/script loading

 *  Resolved [dmy0851](https://wordpress.org/support/users/dmy0851/)
 * (@dmy0851)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-conflictscript-loading/)
 * Hi,
 * Thanks for your plugin.
 * The Bootstrap styles are conflicting with the rest of my site, so I would like
   to eliminate the styles/scripts from the head on pages that are not using the
   parallax…
 * I found this article:
    [http://wordpress.stackexchange.com/questions/695/restricting-a-plugin-to-only-load-its-css-and-js-on-selected-pages](http://wordpress.stackexchange.com/questions/695/restricting-a-plugin-to-only-load-its-css-and-js-on-selected-pages)
 * So… I tried this:
 * function remove_parallax_extras(){
    remove_action(‘wp_print_styles’, ‘gravity_bootstrap_light’);}
   if (! is_page(‘brochure’)) { add_action(‘wp_head’,’remove_parallax_extras’); }
 * To try to eliminate bootstrap.min.css – but am having no luck. Suggestions?
 * Thanks very much in advance.
 * [https://wordpress.org/plugins/parallax-gravity-landing-page-builder/](https://wordpress.org/plugins/parallax-gravity-landing-page-builder/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [sakurapixel](https://wordpress.org/support/users/sakurapixel/)
 * (@sakurapixel)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-conflictscript-loading/#post-5390145)
 * Hello,
 * I’m using the bootstrap 3.0+, it might conflict with themes or plugins that use
   an older version of Bootstrap (like 2.0+). Bootstrap had major changes starting
   with version 3.0 , so older versions of Bootstrap would not be compatible with
   newer versions.
 * Now:
    1. Parallax Gravity only loads scripts or styles if it displays as single,
   this way it does not load scripts/styles for other pages. This was other pages
   are not affected by the Parallax scripts. What could happen is other plugins 
   or the theme to load scripts all the time, overriding Parallax Gravity scripts.
 * 2. Parallax gravity loads scripts all the time if you activate “In page shortcode”
   which is available from the Options (if you have the pro version).
 * Either way, I think the best solution is to update your theme or plugins to use
   Bootstrap 3.0+ (that way you won’t have problems in the future, not just with
   this plugin)
 * Regards

Viewing 1 replies (of 1 total)

The topic ‘Bootstrap conflict/script loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/parallax-gravity-landing-page-builder_7b7a7f.
   svg)
 * [Parallax Gravity - Landing Page Builder](https://wordpress.org/plugins/parallax-gravity-landing-page-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/parallax-gravity-landing-page-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/parallax-gravity-landing-page-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/parallax-gravity-landing-page-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/parallax-gravity-landing-page-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/parallax-gravity-landing-page-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sakurapixel](https://wordpress.org/support/users/sakurapixel/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/bootstrap-conflictscript-loading/#post-5390145)
 * Status: resolved