What are Widgets?
If you've used WordPress for longer than a day, you are probably already familiar with Widgets. If not, that's okay too. Widgets are small little content blocks you can add to your theme's sidebars and sometimes other areas like headers and footers of the site. MemberPress includes a few widgets you can use to help provide some access for your members to login, visit their account page, and view a list of their current subscriptions too.
How to install a Widget
To install a Widget, you'll go to your WordPress Dashboard and click on the Appearance -> Widgets menu item. This will get you to a page where you can see all available widgets and can then drag and drop them to the appropriate sidebar or other areas supported by your theme.
When you find one you want to use, click and drag it to the sidebar area you want it to display. You can also click the available widget and choose which areas to apply it to as well if you don't want to drag-and-drop it.
The above explanation works for WordPress up to version 5.8. Starting from that one, WordPress introduced the Block-based Widget Editor that looks and works a bit differently. Please see this screenshot:
Basically, you'd need to click on a caret symbol of the widget area you want to edit, click the "plus" sign below it and the block with available widgets will show up. If the widget you want is not in the six suggested ones, start typing its name, and it will show up.
After applying the widget to an area, you'll then be able to configure its settings (if any) for that instance of the widget.
Lastly, view your site from the front-end and make sure the widget is displaying where and as you expected it to.
MemberPress Login Widget
This widget places a login form for MemberPress, in one of the sidebar areas on your site. It gives you the option to edit the title of it and to specify whether or not you would like to redirect users to the Login Redirect URL you have set in the MemberPress Settings page after they log in. If users are already logged in, it will say, "You're already logged in," with a link to log out.
MemberPress Subscriptions Widget
This places a widget that will show a list of the current member's Subscriptions with optional links to each Membership's "Membership Access URL" setting. There's a number of message settings that can be configured here as well.
MemberPress Account Links
Places a simple widget with a link to your MemberPress Account Page and a Logout Link if the user is logged in. Currently, this widget can only be used in one Widget location in your theme. If the user is not logged in, then it shows a login page link instead.
Hiding Widgets from Unauthorized Users
To learn how to do this, please check out this page!