How to Style Gravity Forms with Bootstrap 4

Originally published at:

Gravity Forms settings Navigate to Forms > Settings from the WordPress admin: Set Output CSS to No Set Output HTML5 to Yes The included Gravity Forms CSS includes too many styles (their minified styles are still 135 KB) you’d need to override, so it’s easier to start from scratch. General styling for Gravity Forms /**…


I need this regularly. Thank you!

Great guide!

I turned to HTML Forms lately and can only recommend that, still somewhat BETA-y but I love the bloat-free approach.

1 Like

Definitely prefer HTML Forms! This is all I end up needing in that instance since you’re able to use your own markup:

.hf-message {
  @extend .alert;

.hf-message-success {
  @extend .alert-success;

I have created a complete replacement for the Gravityforms styling using Bootstrap:


@ben brilliant! thank you very much for this.

Amazing work! Very useful

I have updated the Gravity Forms Bootstrap styling to use Bootstrap 5 and Gravity Forms 2.5:
Use the filters and hooks: together with the SCSS for a complete Bootstrap 5 replacement of the Gravity Forms CSS.