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.
Finding the item number of your secondary language favicon
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.
Registering the favicon string as translatable
Find the string on the String Translation page and translate it. For the translation, use the item number of your secondary language favicon.
Translating the favicon string by entering the item number for your secondary language favicon
You’ll now have a new favicon that displays when viewing your site in your secondary language.
Viewing the favicon in default and secondary languages
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.