New Landing How can we help? Atelier WPML Translation of site logo and tagline

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Atelier
  • #287487
    Ian
    Member
    Post count: 121

    I need the logo and tag to change to French when I change language. I did not see this in the strings when I pulled them up in WPML.

    How do I get these to change.

    #287491
    Ian
    Member
    Post count: 121

    OK found the tag line but not the logo.

    #287711
    David Martin – Support
    Moderator
    Post count: 20834

    The String Translations module will allow you to specify different content for your theme options based on the selected language.

    1. Go under “WPML -> Theme and plugins localization”
    2. Scroll down to “Strings in the theme” and click on “Scan the theme for strings”
    3. Scroll down to “Strings in the plugins”, select the plugin you want to scan and click on “Scan the selected plugins for strings”
    5. Once you followed the above steps go under “WPML -> String Translation”. All strings available for translation should display in the table you see there.

    #287745
    Ian
    Member
    Post count: 121

    David,

    From what I see this will allow me to translate all the text strings used by Atelier, but what I am look for is a French logo in French version of site and English version of Logo in English site.

    -Ian

    #288170
    David Martin – Support
    Moderator
    Post count: 20834

    You should be able to specify one for each language.

    If you wanted to do it with code, you can use this example to switch between languages:

    <?php if(ICL_LANGUAGE_CODE=='gb'): ?>
       <img src="your_logo.jpg"/>
    <?php elseif(ICL_LANGUAGE_CODE=='fr'): ?>
       <img src="your_logo.jpg"/>
    <?php endif;?>

    This would require you to have your child theme active and a bit of PHP knowledge to amend the correct function for the logo output. The function is called sf_logo() and is located here: swift-framework/core/sf-header.php

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.