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.

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

Amy Kang
Amy Kang
17,188 Points

Modal Inputs Not Styled

The modal window opens but it is not styled like in the video. I just see the default unstyled input areas.

Anybody know what's up with that?

1 Answer

I believe the reason that your modal form is un-styled is because the Ninja Form plugin-generated markup is because because form elements in the Ninja-Form generated markup doesn't have Bootstrap classes need for the styling to be applied.

I had the same problem.

One way to fix it is to edit the form and input the appropriate classes for each element in the form. You can find this under the Advanced Settings dropdown for each form element. For reference see the following GIF Adding Bootstrap Classes to Ninja-Forms elements