Add Custom Favicon
Adds a custom favicon to your WordPress site
PHP
function add_custom_favicon() {
echo '<link rel="shortcut icon" href="' . get_stylesheet_directory_uri() . '/images/favicon.ico" />';
}
add_action('wp_head', 'add_custom_favicon');
Snippet Feedback
Did this snippet work for you? Do you have any questions about this snippet? Leave some feedback below.
SHARED BY
1 Views