Overriding Field Templates in Your Theme
English version coming soon
This page has not been translated to English yet. Please refer to the Japanese version for full details.
Form Plant lets you override the output HTML of each field ( text, radio, checkbox, etc. ) by copying a template file into your theme — no plugin edits required.
How it works (lookup order)
Form Plant looks for each field template in this order and uses the first match:
| Priority | Path |
|---|---|
| 1. Child theme | wp-content/themes/your-child-theme/form-plant/form-fields/text.php |
| 2. Parent theme | wp-content/themes/your-theme/form-plant/form-fields/text.php |
| 3. Plugin (default) | wp-content/plugins/form-plant/templates/form-fields/text.php |
Copy from the plugin's templates/form-fields/text.php to your-theme/form-plant/form-fields/text.php ( drop the templates/ prefix ) and edit it. Use confirm-fields/text.php for the confirmation screen.
Variables
- Input field templates:
$field,$value,$form_id,$form_settings - Confirmation field templates:
$field,$value,$filename
Keep name="<?php echo esc_attr( $field['name'] ); ?>" and output $value, and always escape output. See the Japanese version for the full template list, examples, and notes.