Login Form Block widget

If you are using a WordPress theme including widget areas, you can add to one of these the Login Form Block widget to allow visitors to log in and, depending on your WordPress registration settings, to register an account on your community site.

Adding the Block widget Adding the Block widget

The Block Inserter filtered using the “login” keyword.

When your theme supports widgets, you can manage them from the “Widgets” sub menu of the “Appearance” menu of your WordPress Dashboard. Once in the Block widgets Editor, use the Block inserter to select the “Login Form” block widget. You can use the search field of the inserter to filter the listed block widgets or you can “Browse all” widgets and look for the ones assigned to the BuddyPress category. All BuddyPress widgets will have their icon in bright red. Click on the Login Form Block widget to add it to the widgets area of your choice.

Top ↑

Editing the Block widget Editing the Block widget

Inserts the “BP Login Form” text as the Block widget’s title

From the Block settings, displayed into the Block Widget’s sidebar, you can customize the title of the Login Form and include the link to let the user reset their password activating the corresponding toggle control.

The Block widget preview will show you the state of the widget when the user is logged in. It contains a link to view their profile and to log out.

Top ↑

Rendered Block widget Rendered Block widget

On the front-end, when users are not logged in yet, they will see a form very similar to the WordPress one (see the above screenshot on the left). Depending on your WordPress registration settings, the Block widget will also include a link to open the BuddyPress registration form.

The screenshot on the right shows you the state of the Block widget when the user is logged in.

NB: if you are using a version of WordPress that is lower to 5.8 (or if you deactivated the Block Widget Editor), you’ll be able to find a legacy widget version of the Login Form Block widget to reply to the same need.