๐ฅ Contact Form 7 package for Frontity.
******* PLEASE STAR MY REPO TO SUPPORT OUR WORK ๐ ******
Please follow me ๐ on twitter and github
๐น Video Tutorial
Below is the screentshot taken with Frontity mars theme with some added styles. The styles may look different for your Frontity theme.
- You need to create a page in your WordPress site (if you don't already have one) that contains a CF7 shortcode.
- Install the Frontity Contact Form 7 package as shown in the Installation steps below.
- Visit that page in Frontity and the package will automatically render all the CF7 forms that are present, including other content on the page.
- On successful form submission, the email goes to the admin (if CF7 email settings are configured on your WordPress site). Errors are shown as well if the fields are invalid.
It uses html processors to render the CF7 form.
- All the CF7 forms on the page will work.
- You can also use it for multiple pages.
- Built with React and Frontity, so its fast and performant.
- Do
npm install frontity-contact-form-7
in the root of your project. - Add the package name in
frontity-settings.js
.
"packages": [
"frontity-contact-form-7"
// other packages ...
]
- 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.
This is the beta version. Some features will be added in the final release, like:
If you want to contribute to the package, you can do so following these simple steps:
- Fork this repository (https://github.com/imranhsayed/frontity-contact-form-7).
- Clone it in your local machine.
- Run
npm install
. - Run
npx frontity dev
. - Do the changes to the code.
- Submit the pull request! :)
You can change the state.source.api
setting on the frontity.settings.js
file to point the project to your own WordPress if you want but please do not include those changes in your PR.
- Build with love ๐, using Frontity's
- Luis Herranz - Leed Developer @frontity