Options Modal trouble

Modified on Fri, 23 Oct 2020 at 10:52 AM

Bootstrap Conflict

In some cases bootstrap framework is loaded into the same backend page where semantic-ui framework is loaded from our plugin. This leads to some conflicts when trying to edit the options for FPD, then it looks like this:

To prevent bootstrap to be loaded in the taxonomy backend for WooCommerce, put this PHP code into the functions.php of your theme:

function fpd_mspc_dequeue_script() {
  if( wp_script_is('mspc-admin')  && isset($_GET['taxonomy']) ) {
    wp_dequeue_script( 'bootstrap.min' );
add_action( 'admin_footer', 'fpd_mspc_dequeue_script' );