Wordpress Inject the Favicon to the Head - PHP

Wordpress Inject the Favicon to the Head - PHP

code snippet

php
function blog_favicon() {
    echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_template_directory_uri().'/favicon.ico" />';
}
add_action('wp_head', 'blog_favicon');

"If opportunity doesn't knock, build a door"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.