Skip to content

fluxfederation/fluxfederation.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress CMS Tips

Adding a form - CMS

  • HTML Contents blocks are parsed literally. You can use use the static site class names.
  • The Custom CSS Class field under the Appearance tab of a field is used as the id of inputs on the static site.
  • The Description section is not used.
  • All forms will validate captcha. No need to add a captcha field from the CMS.
  • Do not use a Radio buttons field for inputs with a single option. Use a Checkbox instead.
  • All fields are required.
  • Set the form title from within the form settings.
  • Set the submit button text from within the settings page. Form Button > Button Text
  • Set the redirect URL from the confirmations page. Default confirmation > confirmation type = redirect

Adding a form - JS

  • library/api.js
  • The Form ID is displayed within wordpress when editing a form.
  • Must link new form to validations via ID.
  • Append new form within the setUpForms function.
  • Add custom styles if neccesary.

Babel Instructions

  • Navigate to root directory
  • Make sure latest version of node is installed
  • npm install
  • npx babel library/js/api --out-file library/js/api.min.js --presets minify
  • Or if you want the script to watch for updates: npx babel library/js/api --watch --out-file library/js/api.min.js --presets minify --verbose

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published