Snippet Category: WordPress

onthoudt mij standaard aangevinkt houden

26 maart 2019

function login_checked_remember_me() { add_filter( ‘login_footer’, ‘rememberme_checked’ ); } add_action( ‘init’, ‘login_checked_remember_me’ ); function rememberme_checked() { echo "<script>document.getElementById(‘rememberme’).checked = true;</script>"; }

Read More

wijzig redirect gewone leden

26 maart 2019

function admin_login_redirect( $redirect_to, $request, $user ) { global $user; if( isset( $user->roles ) && is_array( $user->roles ) ) { if( in_array( "administrator", $user->roles ) ) { return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } } add_filter("login_redirect", "admin_login_redirect", 10, 3);

Read More

schudden foute inlog verwijderen

26 maart 2019

function my_login_head() { remove_action(‘login_head’, ‘wp_shake_js’, 12); } add_action(‘login_head’, ‘my_login_head’);

Read More

foute inlog melding wijzigen

26 maart 2019

function login_error_override() { return ‘Foute inloggegevens.’; } add_filter(‘login_errors’, ‘login_error_override’);

Read More

terug naar link verwijderen

26 maart 2019

#backtoblog { display: none; }

Read More

wachtwoord link verwijderen

26 maart 2019

#nav { display: none; }

Read More

wp_login_functions_002

26 maart 2019

function my_login_logo_url() { return get_bloginfo( ‘url’ ); } add_filter( ‘login_headerurl’, ‘my_login_logo_url’ ); function my_login_logo_url_title() { return ‘Jouw website naam en informatie’; } add_filter( ‘login_headertitle’, ‘my_login_logo_url_title’ );

Read More

wp login style_004

26 maart 2019

.login .button-primary { width: 120px; float:right; background-color: #e600e6; background: -webkit-gradient(linear, left top, left bottom, from(#e600e6), to(#ff00ff)); background: -webkit-linear-gradient(top, #e600e6, #ff00ff); background: -moz-linear-gradient(top, #e600e6, #ff00ff); background: -ms-linear-gradient(top, #e600e6, #ff00ff); background: -o-linear-gradient(top, #e600e6, #ff00ff); background-image: -ms-linear-gradient(top, #ff80ff 0%, #e600e6 100%); color: #fff; -webkit-border-radius: 4px; border: 1px solid #e600e6; } .login .button-primary:hover { background-color:#ff33ff; background: -webkit-linear-gradient(top, #ff33ff, #ffccff […]

Read More

wp login style_003

26 maart 2019

.login label { font-size: 12px; color: #ff1a1a; } .login input[type="text"]{ background-color: #e6faff; border-color:#006680; -webkit-border-radius: 4px; } .login input[type="password"]{ background-color: #e6faff; border-color:#006680; -webkit-border-radius: 4px; }

Read More

wp login style_002

26 maart 2019

.login h1 a { background-image: url(‘img/login-logo.png’); }

Read More