Upon the release of WordPress 5.4 “Adderley” 3 months ago many WordPress Users updated their website to adopt or see the latest looks of WordPress. WordPress 5.4 named in honor of Nat Adderley an American jazz trumpeter.
Yesterday, Casting Data had a first look of the new version of WordPress ‘Adderley’. Upon navigating other pages and the admin panel we could not find any codes that affect the front end view of our website.
But looking the favicon icon, we discover that it completely removed or replace with the WordPress logo icon.
Take note: Updating to the newest version of WordPress, will only affect the “wp-admin and wp-includes” folder. So you should always have a backup of this folder to have safe migration, please backup all the files in your website also the database.
Steps on how to fixed Favicon icon
- you should have hosting access to your website
Host: xxxxx
user: xxxxx
password: xxxxx
- locate this path in your hosting domain-name/wp-admin/images/
you can see and image name “w-logo-blue.png” this is the favicon icon use by default in wordpress
- named your logo with “w-logo-blue.png” just 80 pixel both height and width to load faster
It will now fixed and view your own favicon logo on your website, please wait for the change because some server cache took longer.
If you want to alter the code in wp-ico and want your own name to be called, locate this file wp-includes/functions.php, please see below
function do_favicon() {
/**
* Fires when serving the favicon.ico file.
*
* @since 5.4.0
*/
do_action( 'do_faviconico' );
wp_redirect( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) );
exit;
}
You can upload any name in your website inside wp-admin/admin/images folder but you should changed the w-logo-blue.png code above to take effect.
Disclaimer: The view and opinions expressed in this blog post are that of the author and do not in any way represents the agency or department he/she currently belongs to. Further, this information should not be interpreted as an endorsement of any specific provider, service or offering.