Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jdfindley

    (@jdfindley)

    Anyone have experience writing code for custom string translations on polylang and customizr?
    Looking for my logos to be changeable with the language switch.

    Plugin Author Chouby

    (@chouby)

    Thread Starter jdfindley

    (@jdfindley)

    Hi. Yes I had tried that.
    I tried again just to see if
    somehow I had made an error.
    After doing this:
    Copy paste the following code in a file called ‘wpml-config.xml’ that you upload in your ‘wp-content/polylang’ directory

    My code in the wpml-config.xml file was:
    <wpml-config>
    <admin-texts>
    <key name=’theme_mods_customizr’>

    <key name=’header_image’ />
    </key>
    </admin-texts>

    I have a header image selected in ‘Appearance –> Header’

    Any suggestions are very appreciated!
    Thanks
    John
    </wpml-config>

    Plugin Support Chrystl

    (@chrystl)

    And what happens for you in the “Step 4: Go to Settings -> Languages -> Strings translations. You can now choose one header image url per language!”

    Thread Starter jdfindley

    (@jdfindley)

    The option of “header image url” is not there in the string translations.

    Plugin Support Chrystl

    (@chrystl)

    I get it:

    <wpml-config>
    	<admin-texts>
    		<key name="tc_theme_options">
    			<key name="tc_logo_upload" />
    		</key>
    	</admin-texts>
    </wpml-config>

    EDIT: Your theme does not store image urls (in the strings translation) but a number assigned to your picture in your media library. You can see this number in the url when you edit the media, something like /wp-admin/post.php?post=60&action=edit. Here the media number is 60.

    Thread Starter jdfindley

    (@jdfindley)

    Chrystl,
    Fantastic. Thanks so much for your assistance.
    You’ve been a great help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Logo URL String Translation – Customizr’ is closed to new replies.