Last active
October 27, 2022 21:51
-
-
Save tevashov/5172491 to your computer and use it in GitHub Desktop.
Customize Login Page Logo link & ALT text #WP
This file contains hidden or 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
| // CUSTOM ADMIN LOGIN LOGO LINK | |
| function change_wp_login_url() { | |
| return bloginfo('url'); // OR ECHO YOUR OWN URL | |
| } | |
| add_filter('login_headerurl', 'change_wp_login_url'); | |
| // CUSTOM ADMIN LOGIN LOGO & ALT TEXT | |
| function change_wp_login_title() { | |
| return get_option('blogname'); // OR ECHO YOUR OWN ALT TEXT | |
| } | |
| add_filter('login_headertitle', 'change_wp_login_title'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment