- Mar 22, 2013
- 9,153
- 10,492
For some time I've been using the All in one Favicon plugin on my site for inserting the favicon. As we all know, plugins can be problematic, and so everything that can be inserted directly in the code should be.
Now, I successfully inserted a favicon into my site in the header using this code:
But in this thread, which is 3 years old - https://wordpress.org/support/topic/how-to-add-favicon?replies=7 - the guy says the following:
"If you want to be cross-browser precise, also use
"
Now I'm unsure, is what I inserted enough, or should I insert what that guy said?
Thank you.
Now, I successfully inserted a favicon into my site in the header using this code:
Code:
<link rel="shortcut icon" href="http://digesale.com/wp-content/uploads/2015/05/favicon1.ico" />
But in this thread, which is 3 years old - https://wordpress.org/support/topic/how-to-add-favicon?replies=7 - the guy says the following:
"If you want to be cross-browser precise, also use
Code:
<link rel="icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
Now I'm unsure, is what I inserted enough, or should I insert what that guy said?
Thank you.