Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Adding TWO modal windows to a Bootstrap theme in Wordpress
I was able to add modal windows to my Wordpress site thanks to the video "How to Add Bootstrap Modal Windows to your Wordpress Theme."
However, it doesn't want to work if I have more than one modal on the page. Clicking the button to open the second modal will cause the screen to darken, but the modal window never actually pops up.
Also, the code causes the black Wordpress admin bar at the top of the page to disappear.
Is there some kind of incompatibility between Wordpress and multiple bootstrap modals?
And before you ask, yes, the data-toggle and id are unique for the two modals.
Thanks Zac, but yes, the IDs are unique.
Nevermind, I've decided to go for only one modal for now. Thanks for your help