-
-
Save bkaminski/b15afa0d749e4a850634f2b1e3ad5c7d to your computer and use it in GitHub Desktop.
Great for when you want to use FontAwesome in a submit button in Contact Form 7 (Revision)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add instead of [submit] in Contact Form 7 (With Bootstrap 4 added) | |
<button type="submit" class="btn btn-lg btn-info btn-rounded">Send Message<i class="far fa-paper-plane fa-fw ml-3"></i></button> | |
// i class rather than <img src=""> with inline styles. | |
<i class="fas fa-spinner ajax-loader fa-pulse fa-4x"></i> |
If you want "Loading..." to appear, just add as an "after" pseudo-selector on the ajax-loader class.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The purpose of this revision is to add a Font Awesome spinner icon rather than using an ugly "ajax-loader.gif" file included in WPCF7 Plugin.