Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860917

    Julianne
    Participant

    Hi there!

    We just switched hosting and have noticed that when we are logged in to and working in the dashboard of our site, the hostgator favicon is visible. However, when we’re not in the dashboard, the correct favicon (ours) shows. It’s also showing correctly to the world. I have the site icon set up correctly as far as I can tell… it must be otherwise it wouldn’t show at all, right?

    I contacted the host and they couldn’t resolve it. Do you have any suggestions to remove it? I realize this is trivial but my client is asking for it to be removed.

    Thanks!

    #860918

    Julianne
    Participant
    This reply has been marked as private.
    #860921

    Julianne
    Participant
    This reply has been marked as private.
    #861663

    Jade
    Moderator

    Hi Julianne,

    Please setup a child theme an add this code in the functions.php file:

    // First, create a function that includes the path to your favicon
    function add_favicon() {
      	$favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico';
    	echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
    }
      
    // Now, just make sure that function runs when you're on the login page and admin pages  
    add_action('login_head', 'add_favicon');
    add_action('admin_head', 'add_favicon');

    Hope this helps.