Last active
October 10, 2017 07:24
-
-
Save kirasiris/8c9ce40f706897af31e8e7aa4d9f6a8a to your computer and use it in GitHub Desktop.
Wordpress login page customization - Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpb_theme_setup(){ | |
// Login Page | |
function my_login_logo_url() { | |
return home_url(); | |
} | |
add_filter( 'login_headerurl', 'my_login_logo_url' ); | |
function my_login_logo_url_title() { | |
return 'Your Site Name and Info'; | |
} | |
add_filter( 'login_headertitle', 'my_login_logo_url_title' ); | |
function my_login_stylesheet() { | |
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/style.css' ); | |
} | |
add_action( 'login_enqueue_scripts', 'my_login_stylesheet' ); | |
} | |
add_action('widgets_init', 'wpb_init_widgets'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment