I have installed WP-Lang. Everything is fine with text but

I have installed WP-Lang. Everything is fine with text but I have a logo that is being set in the theme options Logo: /wp-content/themes/files/images/logo.png

This logo has an english text, So I need to have different version for each language. What's the best way without changing php file? Maybe a way to display Logo: $logo_url and then somewhere set which is $logo_url for English, which for German etc.

  • Vaughan

    hiya

    thanks for posting.

    i'm not sure you can do this without editing the header.php file of your theme.

    i'm not familiar with wp-lang or method it uses.

    but something like this in your header.php

    <?php
    $mylocale = get_bloginfo('language');
    if($mylocale == 'en_US') {
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/english.png" width="398" height="15">
    }
    elseif($mylocale == 'de_DEt'){
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/german.png" width="398" height="15">
    }
    ?>

    or something like that.

    hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.