• Hi!

    first of all thanks for the time spend on my post.

    I’m building a website with WordPress. In this occassion, it’s supossed to be a multilingual site. So, I found some plugins to do it.

    WPML Multilingual CMS seems to be the most complete plugin. However I didn’t know if it is possible to translate texts displayed on the sidebar.

    Does anyone know how to do so? Is it possible? Maybe have I write some php code in my sidebar.php?

    In case you decided other plugin to do so, please, suggestions are welcome!

    Thanks a lot!

Viewing 1 replies (of 1 total)
  • I don’t know if you still need the answer to this question after 5 months but the answer is yes!

    There are conditional PHP tags you can use to determine the language:

    <?php
    if(ICL_LANGUAGE_CODE=='en'){ ?>
    
    ...English content...
    
    <?php }
    if(ICL_LANGUAGE_CODE=='ja'){ ?>
    
    ...Japanese content...
    
    <?php } ?>

    https://forum.wpml.org/topic.php?id=2703

Viewing 1 replies (of 1 total)
  • The topic ‘Multilingual plugin and sidebar’ is closed to new replies.