Themes & Design

How to Change Favicon in WordPress

WordPress theme and design tips

Changing the favicon in WordPress, often called the site icon, makes your site easier to recognize in browser tabs, bookmarks, and on mobile home screens. This small image helps your brand stay visible even when visitors have many tabs open at once.

In this guide you will prepare a properly sized icon, change it from the newer Settings screen, use the classic Customizer if needed, and update it inside the Site Editor for block themes. You will also see how to verify that the new favicon in WordPress appears correctly everywhere and how to override it with code when necessary.

What You Need to Change the Favicon in WordPress

  • Access to your WordPress dashboard with an account that can change Settings and Appearance for managing the favicon in WordPress.
  • A square favicon image, ideally 512 × 512 px in PNG format, to use as your WordPress site icon.
  • Basic ability to navigate the WordPress admin menu on desktop so you can reach the favicon in WordPress settings.
  • Optional access to your theme’s functions.php file or a child theme if you plan to use the code method to override the default WordPress favicon.

Step 1: Prepare Your Favicon Image File

Before you open any settings, make sure the image you want to use as the favicon in WordPress is ready. Because WordPress expects a square image, it will generate all the small icons it needs from this single file.

  1. Create a new square canvas in your design tool of choice, at least 512 × 512 px.
  2. Place a simple version of your logo or initials in the center with strong contrast so it is readable at tiny sizes for your WordPress favicon.
  3. Export the image as a PNG file with a transparent background if possible, which keeps the edges of the site icon in WordPress looking clean.
  4. Log in to your WordPress dashboard, go to Media » Add New, and upload the favicon image so it is available in the media library when you change the favicon in WordPress.
Official blue WordPress logo, commonly used as a site icon or favicon on WordPress websites.
The official blue WordPress logo, a common element users might replace when changing their site’s favicon.
Keep the design simple. Thin text or very detailed graphics disappear at favicon sizes, so focus on one recognizable shape or letter for your WordPress favicon.

After the image is uploaded and visible in your media library, you can connect it to the Site Icon setting and finish updating the favicon in WordPress.

Step 2: Change Favicon in WordPress from General Settings

Modern versions of WordPress (6.5 and later) promote the Site Icon field inside the main Settings screen. Using this method keeps your favicon in WordPress easy to manage across themes.

  1. Log in to your WordPress dashboard at yourdomain.com/wp-admin.
  2. In the left menu, click Settings » General to access the site identity and favicon in WordPress controls.
WordPress General Settings page, showing the 'Site Icon' section for changing your site's favicon. Site title and tagline visible.
Locate the ‘Site Icon’ option on the WordPress General Settings page to change your favicon.
  1. Scroll down until you find the Site Icon section that shows a preview or a placeholder image of the current favicon in WordPress.
  2. Click Choose a Site Icon (or Change Site Icon if one already exists).
WordPress Media Library upload screen showing the drag-and-drop area and 'Select Files' button, perfect for adding your new favicon.
Use the WordPress Media Library to upload your new favicon image by dropping files or clicking ‘Select Files’.
  1. In the Media Library tab, select the favicon image you uploaded earlier, or use Upload Files to upload it now.
  2. Press Select. When WordPress asks you to crop the image, adjust the crop box so your icon is centered and then click Crop Image.
  3. Return to the General Settings page, scroll to the bottom, and hit Save Changes to store the updated favicon in WordPress.
WordPress General Settings page, highlighting the Site Icon section where you can change your site's favicon.
Navigate to General Settings in WordPress to manage your site’s favicon or site icon.

Next, open your site’s homepage in a new browser tab. The tab should now display your new WordPress favicon next to the site title; if it does not appear immediately, refresh the page or try a private window.

Step 3: Change Favicon in WordPress Using the Customizer

Many classic themes and slightly older sites still manage the favicon in WordPress through the Customizer. The relevant controls usually live under Site Identity, alongside the logo and site title fields.

  1. From the WordPress dashboard, go to Appearance » Customize.
WordPress Customizer showing the 'Site Identity' menu, used for changing the favicon or site icon in WordPress.
This image shows the WordPress Customizer with the ‘Site Identity’ section visible, where you can change your site’s favicon.
  1. In the Customizer sidebar, click Site Identity to access the logo and favicon in WordPress options.
WordPress Customizer showing the Site Identity section with options to change the site icon, also known as favicon.
Locate the Site Icon option within the Site Identity settings of the WordPress Customizer to change your favicon.
  1. Locate the Site Icon section and choose Select site icon or Change image to update the WordPress favicon.
  2. Pick your favicon image from the Media Library or upload it, then click Select.
  3. Use the cropping tool if prompted so the main part of your icon fits nicely inside the square preview.
  4. Finish by clicking the top Publish button, which saves the new favicon in WordPress and applies it to the front end.
WordPress Customizer site identity settings demonstrating how to change favicon in WordPress, showing the site title, tagline, and site icon upload area with the default WordPress logo.
Access the Site Identity section in the WordPress Customizer to update your website’s favicon or site icon.

After publishing, open your site in another tab and confirm that the browser tab now shows the new WordPress favicon. Checking a couple of different pages helps you confirm the change appears consistently.

Step 4: Change Favicon in WordPress Block Themes (Site Editor)

Block themes rely on the Site Editor instead of the classic Customizer. Even in this newer interface, you can still control the favicon in WordPress by working with the Site Logo block and its site icon option.

  1. In your dashboard, navigate to Appearance » Editor.
WordPress Theme File Editor displaying header.php code, which is where favicon links can be manually added for advanced WordPress favicon changes.
Theme File Editor displaying header.php code, which is where favicon links can be manually added for advanced WordPress favicon changes.” width=”1100″ height=”536″> Manually edit the header.php file in the WordPress Theme Editor to add or modify favicon code directly.
  1. Open the template that holds your main header, usually the Home or Header template.
  2. Click the Site Logo block in the header area so its settings appear in the right-hand sidebar.
WordPress theme editor displaying the `header.php` file for the Flex Blogging theme, used when changing a favicon.
The WordPress Theme Editor allows direct modification of the `header.php` file, a common location for adding favicon code.
  1. Look for a toggle labeled Use as site icon or a link to Site Icon settings. Turning on this option connects your site logo to the favicon in WordPress.
  2. When the Site Icon panel opens, select or upload your favicon image and confirm your choice.
  3. Click Save in the top-right corner and confirm all template changes so the new WordPress favicon is stored.

Finally, visit the front of your site in a new tab. Both the logo in the header and the favicon in WordPress shown in the browser tab should now use the correct image.

Step 5: Clear Cache and Verify the Favicon Everywhere

Browsers and caching plugins are stubborn about favicons, so changes are not always visible instantly. After updating the favicon in WordPress, you may need a few extra steps to see the new icon.

  1. Perform a hard refresh on your site by pressing Ctrl + F5 (Windows) or Cmd + Shift + R (Mac) on the page where you want to see the new WordPress favicon.
  2. Open your site in a private or incognito window and check the browser tab icon there.
  3. Clear any caching plugins or CDN cache from their settings pages, then reload the site to update how the favicon in WordPress is served.
  4. On a mobile device, add the site to the home screen so you can confirm that the site icon in WordPress looks crisp at app icon size.

In stubborn cases where the old favicon keeps showing, allow some time for remote caches to expire or follow How to clear cache WordPress for a deeper cleanup after changing the favicon in WordPress.

Step 6: Override the Favicon in WordPress with Code Snippets

Most sites can rely entirely on the built-in site icon feature, but some owners prefer extra control. A custom function lets you override the default favicon in WordPress and declare multiple icon sizes for different devices.

  1. Use FTP or your hosting file manager to open your child theme folder, usually wp-content/themes/your-child-theme.
  2. Edit the functions.php file in that folder.
  3. Paste the following code at the end of the file, after any existing code.
function wph_custom_favicon() {
    ?>
    <link rel="icon" href="<?php echo esc_url( get_stylesheet_directory_uri() . '/favicon-32x32.png' ); ?>" sizes="32x32" />
    <link rel="icon" href="<?php echo esc_url( get_stylesheet_directory_uri() . '/favicon-192x192.png' ); ?>" sizes="192x192" />
    <link rel="apple-touch-icon" href="<?php echo esc_url( get_stylesheet_directory_uri() . '/apple-touch-icon.png' ); ?>" />
    <meta name="msapplication-TileImage" content="<?php echo esc_url( get_stylesheet_directory_uri() . '/mstile-270x270.png' ); ?>" />
    <?php
}
add_action( 'wp_head', 'wph_custom_favicon' );
add_action( 'admin_head', 'wph_custom_favicon' );
WordPress theme editor showing `functions.php` code for adding custom favicon links, demonstrating how to change favicon in WordPress manually.
This image shows how to add custom favicon code directly into your WordPress theme’s `functions.php` file using the theme editor.
Always use a child theme for custom code. Editing the parent theme’s functions.php directly can cause you to lose your custom favicon in WordPress when the theme updates.

Once the function is in place, upload the icon files mentioned in the code to your child theme folder. The browser tab and WordPress admin screens should then use your custom WordPress favicon even if the theme does not expose a site icon setting.

Maintenance Methods for Managing a WordPress Site

Ongoing maintenance keeps your site healthy, fast, and secure, and that includes refreshing your favicon in WordPress when you rebrand. Different owners prefer different workflows, so it helps to compare the main options before you decide how to handle routine tasks.

Method Where You Use It Main Purpose
DIY Manual Maintenance WordPress dashboard and hosting control panel Maximum control over updates, backups, favicon changes in WordPress, and checks for small or low-risk sites.
Managed Hosting Tools Your host’s control panel or custom dashboard Simplify routine maintenance with one-click updates, built-in backups, and basic security so you have more time to work on design changes like the favicon in WordPress.
Maintenance & Security Plugins Plugins section inside the WordPress dashboard Automate repetitive work such as backups, database cleanup, image optimization, and security scans while you manually update the WordPress favicon when needed.
WP-CLI and Developer Tools SSH terminal with WP-CLI and deployment tools Scriptable, fast maintenance for developers managing multiple or complex sites, including bulk changes to branding assets like the favicon in WordPress.
Professional WordPress Care Plan External provider, freelancer, or agency Hands-off maintenance with proactive monitoring, fixes, and expert support, often including help updating your logo and favicon in WordPress.

Where to Find Your Favicon in the WordPress Dashboard

All of the tools you need to manage the favicon in WordPress live inside the admin dashboard. Depending on your theme and WordPress version, the WordPress favicon controls usually appear in one of three main places.

  • Settings » General – the main location for the Site Icon field in modern WordPress versions.
  • Appearance » Customize » Site Identity – common for classic themes that still use the Customizer to handle the WordPress favicon.
  • Appearance » Editor – used by block themes where the Site Logo block can also act as the favicon in WordPress when you enable Use as site icon.

If none of these screens expose a WordPress favicon option, check your theme’s documentation or any bundled theme options panel. Some premium themes move the favicon in WordPress to a custom settings page to keep everything in one branded interface.

Conclusion You Are Ready to Go

At this point you have seen how to change the favicon in WordPress using General Settings, the classic Customizer, and the block-based Site Editor. A code snippet method for advanced users gives you an extra way to control how the WordPress favicon appears across different devices.

Keeping your favicon file safe alongside your logo assets makes future brand updates much easier. Whenever you redesign your site or adjust your colors, you can quickly repeat these steps and refresh the favicon in WordPress to match.

Further Reading

Frequently Asked Questions

What size should my WordPress favicon be?

A square image of at least 512 × 512 px works best. WordPress resizes this single file into all the small icons it needs for browsers and mobile devices, so choosing 512 × 512 px in PNG format keeps your favicon in WordPress sharp.

Why do I still see the old favicon after changing it?

Browsers and caching tools store favicons aggressively. After changing your favicon in WordPress, perform a hard refresh, clear your browser cache, and purge any caching plugins or CDN caches. Checking in a private window or another browser quickly shows whether the new WordPress favicon is live.

Where do I change the favicon in WordPress 6.5 and later?

For current versions, open Settings » General and locate the Site Icon section. From there, click Choose a Site Icon or Change Site Icon, select your image from the media library, and then click Save Changes to update the favicon in WordPress.

What if I cannot find the Site Icon option in my theme?

Block themes often hide this setting inside the Site Editor. Go to Appearance » Editor, select the Site Logo block in your header, and enable the Use as site icon option or follow the Site Icon settings link. Some older or custom themes also provide a favicon in WordPress setting inside their own theme options panel.

Do I still need a favicon.ico file in my site root?

Most modern WordPress sites no longer rely on a manual favicon.ico file when you use the built-in site icon feature. The platform outputs the correct HTML tags for browsers automatically, and you generally only need a separate favicon.ico file when you support very old browsers or a special setup in addition to the normal favicon in WordPress.

Can I use a plugin to manage my favicon instead of settings?

Several plugins can override the default site icon output and let you upload extra icon sizes or formats. This approach helps on multisite installations or on themes that do not expose any favicon in WordPress options. Always pick a well maintained plugin from the official WordPress.org directory and keep it updated.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button