A header login button should change once someone logs in: visitors need a way in, members need a way to their profile and a way out.
The WP Login & Register widget from The Plus Addons for Elementor does both. Logged-out visitors see a button that opens the login form, and logged-in members see the My Account Menu with a Logout link.
To check the complete feature overview documentation of The Plus Addons for Elementor WP Login & Register widget, click here.
Requirement – This widget is a part of The Plus Addons for Elementor, make sure it’s installed & activated to enjoy all its powers.
Before You Start
- Edition: Pro — the WP Login & Register widget is only part of The Plus Addons for Elementor Pro. The free plugin lists it as a locked Pro widget and does not add it to Elementor.
- Widget to enable: WP Login & Register, switched on under The Plus Addons > Widgets.
- A header template built with a theme builder that uses Elementor templates.
How to Add a Login and Logout Button
- Add the WP Login & Register widget to your header template.
- In Forms Layout, set Type to Login or Login and Register.
- Set Layout to Button Hover, Button Click or Button Popup, and set the button’s text in the Button section.

- Open My Account Menu and keep My Account Menu on.
- Keep User Avatar, User Name or both on. The account button that members see is made from these two.
- Keep Logout on and change its Title if you like. Then publish the template.


How It Behaves
- Logged-out visitors see the button. Depending on the layout, the login form opens on hover, on click, or in a popup.
- After a successful login the page reloads, and the button is replaced by the member’s avatar and display name.
- The account menu lists Edit Profile (the WordPress profile screen), any Extra Menu items you added, and Logout.
- Logout logs the member out and brings them back to the same page, where the login button shows again.


Add Your Own Account Links
In My Account Menu > Extra Menu, click Add Item, then set a Title and a Link for each page, for example your orders or downloads page. The items appear between Edit Profile and Logout.
Limitations
- If My Account Menu is off, logged-in members see nothing at all where the widget is.
- Edit Profile always opens the WordPress profile screen in the dashboard. Remove it and add your own account page in Extra Menu if members should not see the dashboard.
- If Redirect After Login is on, members land on that page instead of seeing the menu right away.
- The widget is part of The Plus Addons for Elementor Pro only.
Troubleshooting
Members see an empty space after logging in
Turn on My Account Menu, and keep User Avatar or User Name on.
I can’t see the login button while editing
You are logged in, so the live site shows your account menu. Check the header in a private browser window.