Login Form Shortcode

Introduction

The Gravity Forms User Registration Add-On adds shortcode actions that extend the built-in gravityform shortcode. See also the article on the user information shortcode.

Shortcode Actions

login

Requires: User Registration Add-On.

Displays the login form.

Example

[gravityform action="login" description="false" logged_in_message="Yay! You are logged in!" registration_link_text="Register for my super awesome site" forgot_password_text="Stop forgetting your password" theme="orbital" /]

Parameters

ParameterDescriptionDefault
titleWhether to display the form title.true
descriptionWhether to display the form description.false
logged_in_avatarWhether to display the user avatar for logged-in users.true
logged_in_messageA message to display to users who are already logged in.
login_redirectA URL to redirect the user to after logging in.
logout_redirectA URL to redirect the user to after logging out.
registration_link_displayWhether to display the registration link.true
registration_link_textThe text for the registration link.Register
forgot_password_displayWhether to display the Forgot Password link.true
forgot_password_textThe text for the Forgot Password link.Forgot Password
tabindexA custom tabindex for the form.
themeThe theme to apply to the login form. Accepts orbital or gravity.

Note: Legacy markup is no longer supported on the login form. Use the theme parameter to control styling instead. You can also use the gform_user_registration_login_form_title filter to modify the login form title.