Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Add Bootstrap Components to WordPress Theme How to Add Bootstrap Modal Windows to Your WordPress Theme

Kevin Brown
Kevin Brown
2,312 Points

When I click on the Contact Us button the modal window flashes once then disappears. What's up?

I don't know if there is a deeper issue with my code but I can't seem to get my modal window to stay visible. It opens and then immediately closes.

3 Answers

Jason Brady
Jason Brady
17,372 Points

Short answer is that the bootstrap.js is being loaded twice.

If you go into /wp-admin > settings > BS Shortcodes, uncheck "load twitter bootstrap javascript file" (since we included that in functions.php

Todd Gechtman
Todd Gechtman
352 Points

Awesome helped me! Also uncheck "load twitter bootstrap CSS" (since we included that in functions.php

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Kevin,

Please take a look at this forum topic where your question may be answered. If this thread does not answer your question, please reply to this and I will look into it further for you.

The topic can be found here:

Modal Window Disappearing

Good luck