Answer the question
In order to leave comments, you need to log in
How to change favicon in worpress admin?
Hello! I ran into such a problem - I upgraded the site on wordpress on hosting (completely demolished the old one and installed a new one), as a result of which the favicon of the new site was applied new, but the old one is still hanging in the admin panel. .
Answer the question
In order to leave comments, you need to log in
Replace it via function.php (the file is in the theme folder)
Or read the codex.
https://codex.wordpress.org/Creating_a_Favicon
function fav() {
echo '<link rel="Shortcut Icon" type="image/x-icon" href="http://...бла-бла-путь к картинке/favicon.ico" />';
}
add_action( 'admin_head', fav' );
If you have wordpress 4.3, then appearance - configure - site properties - site icon
The installed icon is automatically cut into several required formats and displayed in browser tabs, on tabs of mobile platforms and in some services, for example, in Yandex search.
https://wpmag.ru/2015/wordpress-4-3/
Even easier, you can specify in header.php
<head>
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
</head>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question