WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Modal Login

A highly configurable and versatile modal (pop-up) login form.

  1. Upload wp-modal-login to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

WIDGET SETUP

Navigate to Appearance > Widgets in the admin area. Locate the WP Modal Login widget in the Available Widgets section and drag and drop into a widgetized area for your currently active theme.

You have four options in the widget window, Widget Title, Login Text, Logout Text and Logout URL.
WIDGET TITLE: Add a title to the widget.
LOGIN TEXT: Set the text for the login link. Defaults to "Login".
LOGOUT TEXT: Set the text for the logout link. Defaults to "Logout".
LOGOUT URL: Set the logout URL redirection. Defaults to the home_url() function SHOW ADMIN LINK: Displays a link to the admin URL when a user is logged in.

SHORTCODE SETUP

You can use the shortcode in any edit screen for posts, pages or custom post types. In any post edit screen, you will see a "lock" icon, clicking this will invoke a modal window where you can add custom login text, logout text and/or logout url (used for redirecting users after logout). Click the "Insert Modal Login Shortcode" button to insert into post.

ADD TO THEME WITH PHP

With version 2.0 we deprecated the old method and created a new, easier to use function that should just work!

<?php add_modal_login_button( $login_text = 'Login', $logout_text = 'Logout', $logout_url = '', $show_admin = true ); ?>

The new PHP function accepts 4 arguments, each described below in greater detail.

$login_text | String | The text for the login link. Defaults to 'Login'.
$logout_text | String | The text for the logout link. Default 'Logout'.
$logout_url | String | The url to redirect to when users logout. Empty by default and uses the home_url() function.
$show_admin | Bool | The setting to display the link to the admin area when logged in. Default is 'true'.

DEPRECATED AS OF v2.0:

<?php $modal_login = new Geissinger_WP_Modal_Login; echo $modal_login; ?>

Requires: 3.5 or higher
Compatible up to: 3.6.1
Last Updated: 2013-7-31
Downloads: 32,754

Ratings

4 stars
4.2 out of 5 stars

Support

0 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 75,4,3 0,1,0 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
86,7,6
20,5,1
100,1,1
67,6,4
75,4,3
0,1,0