If you are a developer and you’d like to customize the login, registration, and other membership-related pages used by the Simple Membership plugin, you can override the default templates by placing modified versions in your theme folder.
Note: If you don’t have PHP coding skills then you may need to hire a developer to do customization related tweaks.
Table of Contents
- Step 1: Create a Folder in Your Theme
- Step 2: Copy and Modify the Template Files
- Step 3: Example File Path
- Important Notes
Step 1: Create a Folder in Your Theme
- Go to your WordPress site’s theme folder using FTP or your file manager.
- Navigate to:
wp-content/themes/your-current-theme/ - Create a new folder named simple-membership inside your theme directory.
Step 2: Copy and Modify the Template Files
You can override the following user-visible template files by copying them from the main Simple Membership plugin directory (/simple-membership/views/) and placing them in your theme’s simple-membership folder. After copying, you can modify them as needed to adjust the design or functionality:
| Template File | Purpose |
|---|---|
| login.php | Login form template |
| loggedin.php | Logged-in user display template |
| add-v2.php | Registration form template (v2) |
| edit-v2.php | Edit profile form template (v2) |
| reset_password_using_link.php | Password reset form template |
Step 3: Example File Path
For example, to override the login.php template, create the file at the following location:
wp-content/themes/your-current-theme/simple-membership/login.php
Important Notes
- The plugin will first look for the template in your child theme (if applicable), then the main theme, and finally default to the plugin’s built-in template.
- After adding your custom template files, clear any caching on your site to see the changes immediately.