I have my custom favicon.ico set up in my themes custom folder and it renders correctly for every page on my site. However, in the process of it rendering, it flashes the default Drupal logo for a split second before showing my custom favicon. I have my Global Settings set to Use the favicon supplied by the theme, then both my Claro and custom theme set to the path of my custom favicon(the favicon used by Global Settings in my themes custom folder). Any ideas on whats causing this?

  • Browsers can cache favicons so the first thing to check is whether this happens in an incognito session. Next, is the Drupal logo returned by a request to /favicon.ico? Last is there any occurrence of '/misc/favicon.ico' in the page source? Commented Feb 11, 2020 at 16:28
  • Hey thanks for the reply! It is happening in an incognito session. When you say returned by a request, what do you mean? Cause I thought if I created a custom /favicon.ico file Drupal automatically picks it out and uses it, then ignores any previous default favicon. Commented Feb 11, 2020 at 16:30
  • Try visiting the url "http//:mysite.example.com/favicon.ico". Browsers will look at this location for the favicon by default. Commented Feb 11, 2020 at 16:32
  • I'm running the site locally via MAMP Pro. If I do add the /favicon.ico anyway it gives me a 404 error Commented Feb 11, 2020 at 16:37
  • OK, did you view source in your browser to check the HTML for the page for any mention of "/misc/favicon.ico"? Commented Feb 11, 2020 at 16:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.