Custom WordPress Favicon does not appear on all pages (Chrome)

Favicon appears on most pages, with the exception of 3. Nothing special about how those 3 pages have been setup. Identical to the ones that are currently displaying favicon properly. All works fine in FireFox but Chrome keeps showing default WP favicon on those 3 pages. This is the code I put inside my <head> tag <link rel="icon" href="<?php echo esc_url( get_template_directory_uri() ); ?>/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="<?php echo esc_url( get_template_directory_uri() ); ?>/favicon.ico" type="image/x-icon" /> Pretty standard stuff... Any idea what could be causing this issue? I have cleared my cache and used incognito - so I am assuming it is not down to cache. I have also removed all my plugins - the issue remained
2 Replies
vince
vince2y ago
Never used WP but maybe WP caches assets on the server. Try renaming your favicon to something different and see if that works
Coder_Carl
Coder_Carl2y ago
Is there a difference in the urls in the rendered html? (I know there shouldn't be but... You seem to be experiencing something weird) If you open the resource that's downloaded from your network tab, is it the wrong one still? Are these pages using a template part that has a reference to the diff favicon?
Want results from more Discord servers?
Add your server