web_login_form Shortcode
The web_login_form shortcode renders the login component.
The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.
Usage
[web_login_form]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
content |
— | String unless stated otherwise | If empty, the block will not appear. You can use the following variables: {user_name}, {user_last_name}, {user_email}, {user_login}, {logout_link}, {my_account_link}. |
prepend |
— | String unless stated otherwise | Text to prepend to the login form. |
append |
— | String unless stated otherwise | Text to append to the login form. |
redirect_url |
— | String unless stated otherwise | If empty, the user will be redirected to the same page. |
redirect_when_logged_in |
— | true |
If enabled and a redirect URL is set, logged-in visitors will be redirected on page load. |
login_error_message |
Invalid username or password. |
String unless stated otherwise | Text to display when the login fails. |
submit_button_style |
1 |
1 or a configured button-style slug |
Selects the submit button style. |
device_visibility |
— | String unless stated otherwise | Applies the selected responsive visibility rule. |
el_id |
— | Valid unique HTML ID | Enter section ID (Note: make sure it is unique and valid according to w3c specification). Available when type is other_post_content or custom_meta. |
el_class |
— | String unless stated otherwise | If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file. |
Verification
Test web_login_form in its relevant logged-in and logged-out states, including validation, success and error feedback. Pay particular attention to content and prepend.