Black screen when using bootstrap modal

Est. Reading: 1 minute
By: rojaco
Created: 06/27/2017
Category:
Difficulty: Beginner

Black screen when using bootstrap modal

×Warning: This tutorial was created 2683 days ago. Some of the information may be out of date with more recent versions of Formidable. Please proceed with caution and always perform a backup before adding custom code.

I had the same problem described in this thread https://Formidableforms.com/help-desk/bootstrap-modal-and-popup-forms/.  My problem was caused by multiple versions of bootstrap being loaded. I solved my problem by adding the following code to my child theme's functions.php (as always, make sure you have FTP access to your site before editing functions.php from the WordPress backend in case something goes wrong):

add_action('wp_footer', 'remove_bootstrap_js', 1 );
function remove_bootstrap_js(){
 wp_dequeue_script( 'bootstrap' );
 wp_dequeue_style( 'bootstrap' );
}

Leave a Reply

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crosschevron-leftchevron-rightarrow-right