Adding new LOGO strings to Polylang
-
Hello OceanWP team,
I’m trying to add custom strings in polylang so different logos will be loading for each different language. But I don’t find any way to add this support…
This would be a cool feature added to OceanWP for multilanguage sites using a different logo for each country.
What I tried :
– Creating a wpml-config.xml file in a new polylang folder in wp-content (recommanded by Polylang)
Pasting this code :<wpml-config> <admin-texts> <key name='theme_mods_oceanwp'> <key name='the_custom_logo' /> </key> </admin-texts> </wpml-config>
Then, registering the string in functions.php in oceanwp folder like this :
pll_register_string('oceanwp_the_custom_logo', 'https://www.domain.com/wp-content/uploads/2019/09/logo.png');
The string is created in Polylang but the logo remains the same.
I tried with those entries (found in logo.php) :
ocean_full_screen_header_logo
ocean_responsive_logo
logoNone worked ! Any idea to add this new feature ?
- The topic ‘Adding new LOGO strings to Polylang’ is closed to new replies.