Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On a classic WordPress theme, add the built-in Login-out block to the sidebar from Appearance → Widgets, enable Display login as form, and save. If your site uses a block theme, edit the sidebar’s template part in Appearance → Editor instead; the traditional Widgets screen may not exist.

First, identify which editing system your theme uses

The active theme determines where a sidebar can be edited. Classic themes expose theme-defined widget areas, while block themes use the Site Editor.

Classic themes

Open Appearance → Widgets. Depending on the theme and WordPress version, you may also reach widget editing through Appearance → Customize → Widgets. The available areas and their names—such as Sidebar, Primary Sidebar, or Footer—are created by the theme, so they vary from site to site. WordPress describes the block-based Widgets Editor at its developer documentation and explains widget-area management in its widget guide.

Block themes

Block themes, including Twenty Twenty-Five, do not use the traditional widget-area workflow in the same way. Open Appearance → Editor, then edit the template, template part, or pattern that contains the site’s sidebar or equivalent layout area. Place an available login-capable block in that location and save the Site Editor changes. WordPress documents this distinction in its Block-based Widgets Editor documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Add the form with a classic theme

  1. Sign in to your WordPress administration area.
  2. Go to Appearance → Widgets.
  3. Select the sidebar or other widget area where the form should appear. If several areas are listed, choose the one used by the pages on which visitors need to log in.
  4. Add the Login-out block to that area.
  5. Open the block settings and enable Display login as form. With this option enabled, WordPress displays username and password fields rather than only a login link.
  6. Optionally enable Redirect to current URL if a visitor should return to the page they were trying to access after signing in.
  7. Save the widget-area changes, then view the site and confirm that the form appears in the intended sidebar.

The official Login-out block documentation covers both the form display setting and the redirect option.

Configure it in a block theme

  1. Open Appearance → Editor.
  2. Find the template or template part that controls the layout where the sidebar appears. Themes may name this part differently, and some layouts may use a complementary column rather than a component literally called “sidebar.”
  3. Open that template part in the Site Editor.
  4. Insert the available login-capable block in the desired position. If the theme provides a Login-out block, use its block settings and turn on Display login as form; otherwise, use an appropriate login block supplied by the site’s installed configuration.
  5. Save the template-part or template changes and check the front end at the relevant screen sizes.

If you do not see Appearance → Widgets, that is normally a theme-editing difference rather than a missing permission or a broken installation: the active block theme expects these changes in the Site Editor.

What the built-in Login-out block does

Setting or behavior What it means
Display login as form Shows a username-and-password form instead of only a login link.
Redirect to current URL Returns the visitor to the URL they were trying to access after logging in.
Widget-area location Depends on the active theme; the name and availability of a sidebar are not universal.

These controls are documented in WordPress’s Login-out block reference. The block is the default route because it does not require adding a third-party plugin.

Use a shortcode or plugin when the built-in block is insufficient

A plugin can be reasonable when the theme does not expose a suitable editing location or you need a widget or shortcode implementation that the built-in block does not provide. Treat this as an optional alternative, not a prerequisite.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WP Login Form

The WordPress.org listing for WP Login Form documents a [wp_login_form] shortcode that can be placed in a sidebar-supported content area.

Login Widget With Shortcode

Login Widget With Shortcode describes a dedicated login widget and a [login_widget] shortcode.

Before activating either option, check its current WordPress compatibility, maintenance activity, and whether its controls fit your site. Plugin listings and supported features can change, so verify those details on the listing for the version you plan to install.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a missing or misplaced form

There is no Widgets menu

Check whether the active theme is a block theme. Use Appearance → Editor and locate the relevant template or template part instead of following the classic widget steps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The form is in the wrong place

Return to the widget-area editor or Site Editor and confirm that you edited the sidebar or layout part used by the affected page template. Themes can define multiple sidebars, and not every page necessarily renders the same one.

Only a login link appears

Select the Login-out block and turn on Display login as form, then save the changes. Without that setting, the block can display a link rather than the complete form.

Visitors do not return to the page they requested

Enable Redirect to current URL in the Login-out block settings and save. The option is intended to send users back to the URL they were trying to access before authentication.

Which method should you choose?

Need Best starting point Why
Classic theme with a visible sidebar widget area Login-out block in Appearance → Widgets It is built into the widget editor and can render a full form.
Block theme Site Editor template or template part Block themes use templates and patterns instead of the traditional Widgets screen.
Shortcode or a dedicated widget is specifically required A compatible plugin such as WP Login Form or Login Widget With Shortcode These listings document shortcode/widget alternatives, but compatibility and maintenance must be checked first.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.