Skip to content

Instantly share code, notes, and snippets.

@bkaminski
Forked from iMazed/contactform7-form.php
Last active February 20, 2018 16:22
Show Gist options
  • Save bkaminski/b15afa0d749e4a850634f2b1e3ad5c7d to your computer and use it in GitHub Desktop.
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)
//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>
@bkaminski
Copy link
Author

bkaminski commented Feb 20, 2018

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