Yes, there are clearly challenges to using such a public dependency as Bootstrap, especially in a public plugin:
- version conflicts;
- styling conflicts;
- script conflicts.
To minimize possibility of conflict and breakage you would need to consider following extra steps:
- Importing just the necessary Bootstrap styles into your stylesheet and making them specific to only markup related to your plugin.
- Only load JS scripts from Bootstrap that you need and putting them in
noConflictmode, which will keep them out of global namespace and remap them so that only your plugin will make use of that specific instance.
Related Posts:
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Plugin upgrading: Widget settings
- How can I make my custom shortcode work in a Custom HTML Widget?
- How to pass JavaScript variable to PHP in wordpress widget?
- Is dynamic forms/entries possible in Widget?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- WordPress widget / plugin….fields not appearing in my widget
- Created Widget Not Showing up on Admin Panel
- How do I register a stylesheet inside a WordPress widget?
- Detect if a plugin was included in a certain page
- Passing $this->get_field_name() to javascript
- Can I use a form in a dashboard widget?
- Ajax gives 400 error
- Archive – same title for the first two posts
- Ajax contact form widget plugin data not insert in database
- jQuery for custom plugin not working with Divi theme
- WordPress Widget – Saving multidimensional arrays into $instance
- Widget’s container?
- strange shortcode error: does shortcodes requires any dependency?
- WordPress Widget Not Saving Instance
- How to set the default value as the saved value once a form of widget is saved?
- My widget won’t update its values when save is clicked
- How to add captcha to publish widget
- Table of contents (TOC) plugin is not showing header tag
- Widgets are not displaying in the admin panel
- The styles in the recent posts widgets plugin not working
- Using foreach loop for `$instance` of form and update array widget iteration
- One time call to external API in widget
- Widget outputs the value but doesn’t save anything inside the textarea
- WordPress Widget: Is it possible to make the form dynamic without updating?
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Widget redirecting to home page
- WordPress plugin not eching popular posts
- What can I do to customize a widget provided with this plugin? from where have I to start?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- populating a form field with output from a custom plugin function
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Custom Login Page — wp_signon Headers Already Sent?
- Why Does The `auto_update_plugin` Hook Disable Management?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Is there a script to collect all hooks and filters provided by a plugin?
- How WordPress core manage the plugin installation
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Cross Sells are not being shown in Cart Page. Please Help!
- Post status doesn’t update to ‘future’ every time?
- Unable to give correct path in wordpress
- Disable variations on woo commerce if out of stock
- adding custom code as a wordpress plugin
- How to add img into a plugin?
- count the number of views of a post excluding own views
- How To Create A File Archive in WordPress?
- Widget where it can make changes to the container
- Custom Post Type, Custom Columns List
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to add styles to a submenu page?
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- Create a link that calls our custom function in WordPress
- Update a previous version of plugin when the new plugin is built from the scratch
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- How do I keep children of certain parent menus expanded by default on a sidebar?
- Woocommerce list variations that are added already to cart in Single Product
- Plugin json page
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- PHP header() not available to use in my plugin
- Passing ajax variable to more than one wordpress plugin function
- search into subcategories plugin subcategory value not come
- Displaying friend’s posts only
- Why isn’t my plugin seeing other classes?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- How to tell which Plugin is displaying?
- Check if user is in a group of another site within multisite network [closed]
- Template from scratch: Sidebars not showing widget
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Redirect url in plugin to somewhere else?
- Get Core Functionality from Within a (Secondary) Plugin File
- wp_insert_post_data filter to set category
- Site is setup statically – how to make it content managable?
- How to develop an extension for a simple form post and post back? [closed]
- is there a way I can add or remove some plugin options?
- How to add homepage Widget?
- redirect to custom php template in wordpress plugin directory
- How can I send api calls from my plugin?
- On the same site, how do I send data from a plugin file to a theme file?
- How to add custom html to the Media > Attachment Details modal?