@aamodtgroup/frontity-gravity-forms
v0.1.7
Published
Gravity Forms extension for Frontity theme.
Downloads
46
Maintainers
Readme
Frontity Gravity Forms
Gravity forms package for Frontity.
How does it work?
- You need to create a page in your WordPress site (if you don't already have one) that contains a Gravity Forms shortcode or Gutenberg block.
- Install the Frontity Gravity Forms package as shown in the Installation steps below.
- Visit that page in Frontity and the package will automatically render all the Gravity Forms forms that are present, including other content on the page.
- On successful form submission, the email goes to the recipient set in the form settings in WP (if Gravity Forms email settings are configured on your WordPress site). Errors are shown as well if the fields are invalid.
Features
- All the Gravity Forms forms on the page will work.
- You can also use it for multiple pages.
- Built with React and Frontity, so its fast and performant.
Installation
- Do
npm install @aamodtgroup/frontity-gravity-forms
in the root of your project. - Add the package name in
frontity-settings.js
.
"packages": [
"@aamodtgroup/frontity-gravity-forms"
// other packages ...
]
- Add api keys to the state in frontity
source: {
gfAuth: {
key: "ck_example",
secret: "cs_example",
}
}
- Run
npx frontity dev
again.
That's it! The package doesn't need any settings. You should be able to see the form in any page or post that contains one.
Credits
- Build with love :blue_heart:, using Frontity
Authors
- Kasper Aamodt - Owner and developer @aamodtgroup