Last active
May 2, 2019 05:03
-
-
Save jlittlejohn/8ea002ce3555e2d63c64 to your computer and use it in GitHub Desktop.
WP: Add Favicon Function
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
function add_favicon() { | |
$favicon_url = site_url() . '/favicon.png'; | |
echo '<rel="icon" type="image/png" href="' . $favicon_url . '"/>'; | |
} | |
add_action('login_head', 'add_favicon'); | |
add_action('admin_head', 'add_favicon'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment