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

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