L
L
ligisayan2015-11-11 16:42:57
Web development
ligisayan, 2015-11-11 16:42:57

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

3 answer(s)
D
Danila, 2015-11-11
@ligisayan

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' );

U
unionfourman, 2015-11-11
@unionfourman

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/

0
0leg5ergeev, 2015-11-11
@0leg5ergeev

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 question

Ask a Question

731 491 924 answers to any question