- May 23, 2022
WPML allows your website to display different favicons in secondary languages using String Translation.
To translate your favicon, you’ll need to set a favicon for your site. You’ll also need to upload the image you would like to use as your secondary language favicon to the Media Library. When you upload it, make a note of the item number that appears in the URL. In the example below, it’s 594.
Once you have the item number of the secondary language favicon written down, you’ll need to register the original favicon as translatable.
- Go to WPML → String Translation and click on Translate texts in admin screens at the bottom of the page.
- Search for site_icon and add it to String Translation. You’ll notice that the value of the string is a number. This is the item number of your default language favicon. Click Add to String Translation to send it to the main String Translation screen.
- Find the string on the String Translation page and translate it. For the translation, use the item number of your secondary language favicon.
You’ll now have a new favicon that displays when viewing your site in your secondary language.