Templates: 6.4.x

All of the templates located within /wp-content/plugins/theme-my-login/templates are easily customizable. Just simply pick any template you wish to edit, copy it to your current theme's directory and edit it as you wish. Theme My Login will always look for templates in your current theme's directory first, before loading it's own templates.

User Defined Templates

Templates are also definable in the Theme My Login template tag and shortcode. This means that you can assign a specific template you created for a specific Theme My Login instance within your site.

Available Templates

login_template

Template used for the "login" action. Defaults to login-form.php.

register_template

Template used for the "register" action. Defaults to register-form.php.

lostpassword_template

Template used for the "lostpassword" action. Defaults to lostpassword-form.php.

resetpass_template

Template used for the "resetpass" action. Defaults to resetpass-form.php.

user_template

Template used for when a user is logged in. Defaults to user-panel.php.

profile_template*

Template used for when a user is logged in and the Themed Profiles module is active. Defaults to profile-form.php.

Examples

Using your own template

Let's say you created a specific registration form named my-register-form.php. In order to use that template, you would just define the register_template attribute within the Theme My Login instance.

Using shortcode

[theme-my-login register_template="my-register-form.php"]

Using template tag

<?php theme_my_login( array( 'register_form' => 'my-register-form.php' ) ); ?>