Template override system
Overview
You can customize the password reset forms by copying template files to your theme. Your customizations survive plugin updates because you're editing files in your theme, not the plugin.
See Advanced (Developers) for technical details about the template hierarchy, functions, and filters.
How it works
The plugin looks for templates in this order:
- Child theme (first):
your-child-theme/somfrp-templates/ - Parent theme:
your-theme/somfrp-templates/ - Plugin (fallback):
plugin/templates/
The first template found is used. This is the same pattern used by WooCommerce and other major plugins.
Three template files
| Template | What it shows |
|---|---|
lost_password_form.php | Initial form where user enters email |
lost_password_reset_form.php | Form where user enters new password |
lost_password_reset_complete.php | Success message with login link |
How to customize templates
Step 1: Create directory in your theme
your-theme/somfrp-templates/
Step 2: Copy template from plugin to your theme
Copy from: wp-content/plugins/frontend-reset-password/templates/
Copy to: wp-content/themes/your-theme/somfrp-templates/
Step 3: Edit the copy in your theme
Step 4: Test the password reset flow
Your customizations survive plugin updates because you're editing files in your theme, not the plugin.
See Template overrides guide for detailed step-by-step instructions.
Why use this system?
Update safe: Plugin updates won't overwrite your customizations
Easy to test: If something breaks, just delete your theme file to restore the default
Child theme friendly: Works with WordPress child themes
Common issues
Override not working: Check the directory name is exactly somfrp-templates/ and file names match exactly (case-sensitive). Clear all caches.
Form doesn't submit: Don't remove hidden fields, form IDs, or classes. Compare your file to the plugin default.
Variables not showing: Check for typos in variable names. See Templates reference for available variables.
What's next
- Template overrides guide - Step-by-step instructions
- Templates reference - Available variables and examples
- Advanced (Developers) - Technical details