• Resolved theyuv

    (@theyuv)


    Hello,

    I’m using the polylang plugin and would like the logo in the header (the one that is entered in Appearance->customize->Site identity) to change according to the current language.

    I found this: https://polylang.pro/a-multilingual-custom-header-image/
    And set the theme name to “publishable-mag” and the key name to “custom-logo” but it did not work.

    Do you have any suggestions for how I might display a different logo depending on the locale?

    Thanks.

    • This topic was modified 7 years, 1 month ago by theyuv.
Viewing 1 replies (of 1 total)
  • Thread Starter theyuv

    (@theyuv)

    Hey,

    I got this working with the following configuration:

    <wpml-config>
      <admin-texts>
        <key name='theme_mods_publishable-mag'>
          <key name='custom_logo' />
        </key>
      </admin-texts>
    </wpml-config>

    In Languages->String Translations it uses post id rather than image url, which you can find in your media library.

Viewing 1 replies (of 1 total)
  • The topic ‘Polylang logo change’ is closed to new replies.