Have remember me checked by default
-
Hi, can you tell me what I would need to add to the widget_in.php in my themes directory to have the “remember me” checkbox ticked by default? Below is what I currently have on that page.
Thank you!
<?php
/*
* This is the page users will see logged in.
* You can edit this, but for upgrade safety you should copy and modify this file into your template folder.
* The location from within your template folder is plugins/login-with-ajax/ (create these directories if they don’t exist)
*/
?><div class=”lwa”>
<?php
global $current_user;
get_currentuserinfo();
?>
<span class=”lwa-title-sub” style=”display:none”><?php echo __( ‘Hi’, ‘login-with-ajax’ ) . ” ” . $current_user->display_name ?></span>
<table>
<tr>
<td class=”lwa-info”>
<?php
//Admin URL
if ( $lwa_data[‘profile_link’] == ‘1’ ) {
if( function_exists(‘bp_loggedin_user_link’) ){
?>
“><?php esc_html_e(‘Profile’,’login-with-ajax’) ?><br/>
<?php
}else{
?>
profile.php”><?php esc_html_e(‘Profile’,’login-with-ajax’) ?><br/>
<?php
}
}
//Logout URL
?>
“><?php esc_html_e( ‘Log Out’ ,’login-with-ajax’) ?><br />
<?php
//Blog Admin
if( current_user_can(‘list_users’) ) {
?>
“><?php esc_html_e(“blog admin”, ‘login-with-ajax’); ?>
<?php
}
?>
</td>
</tr>
</table>
</div>
- The topic ‘Have remember me checked by default’ is closed to new replies.