A highly configurable and versatile modal (pop-up) login form.
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.
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.
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
0 of 5 support threads in the last two months have been resolved.
Got something to say? Need help?