Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347568

    mikeshudson
    Participant

    The icon/favicon shown when logged into wp-admin is a very old version, and changing this in customizer does not fix it.

    Where is the favicon listed in the site/theme files so that I can change the wp-admin one to the new, correct favicon that the site is showing.

    Running WP and X Theme up-to-date.

    #1347618

    Paul R
    Moderator

    Hi,

    To change favicon in admin area, you can add this in your child theme’s functions.php file (wp-content/themes/x-child/functions.php)

    
    function favicon(){
        echo '<link rel="shortcut icon" href="http://example.org/favicon.ico" />';
    }
    
    add_action('admin_head','favicon');
    

    Change http://example.org/favicon.ico with the url of your favicon.

    Hope that helps.

    #1378395

    mikeshudson
    Participant

    Hi thanks for this, why doesn’t the customiser update the favicon in the admin area? Also, when I list my site on Digg (reading the website feed) it also shows the old favicon?

    #1378398

    mikeshudson
    Participant

    I’m not using a child theme, I’m using a live and up-to-date X theme… I don’t really want to use a child theme unless necessary(?). How can I force update the favicon across all aspects of the site? I can’t even find the image being used in the admin area stored on the server – strange!

    #1378421

    mikeshudson
    Participant

    Sorry – I have solved this. Customiser changes the website favicon, but not favicon.ico in the main directory. Changed that file and the admin area and feed icon changed. Thanks, please close 🙂

    #1378435

    Joao
    Moderator

    Glad to hear it and thanks for letting us know,

    Joao