Guides/Edit your website/Templates/Login/Out Block

Login/Out Block

Last reviewed on October 27, 2025

The Login/out block displays login and logout links that are tied to your website’s login function. Visitors can log in with their WordPress.com accounts or, if WordPress.com Log In is switched off, as a local user. Adding a Login/Out Block does not give visitors any extra access to your site — users must still be granted the required permissions.

Add the Login/Out Block

To add the Login/out block, click on the + Block Inserter icon and search for “login”. Click it to add the block to the post or page.

💡

Using your keyboard, you can also type /login on a new line and press enter to quickly add a new Login/out block.

For more information, visit our detailed instructions on adding blocks.

If you view the site while logged out, a Login option will appear. If you’re currently logged in, a Logout option will appear.

Login/Out Block Settings

When you select a block, you will find additional block settings in the right sidebar. If you do not see the sidebar, you may need to click the Settings icon in the top-right corner to bring up the settings. This icon looks like a square with two uneven columns:

An arrow pointing to the "Settings" icon in the top right of the WordPress Editor.
Click the Settings icon to open the block settings
Login/out block settings
Block settings

With “Display login as form” turned off, “Log in” will show as a text that links to the WordPress.com login screen. With this option turned on, your page will show a login form similar to this (the actual appearance depends on your theme):

Turning on “Redirect to current URL” will take you to the current page upon logging in.

The Login/out block also includes Advanced settings.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!