Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vavooon

    (@vavooon)

    Yes, you need to change flag link (in plugin preferences) in case site isn’t located at a root directory.

    Thread Starter Carret

    (@carret)

    Sorry but I think that changes in link “Flag Image Path” not resolve the issue.

    Anything that put in flag link will be append after the path “/wp-content/”:

    ztranslate.js, line 499:
    ce('img', {src: '/wp-content/'+zTranslateConfig.flag_location+zTranslateConfig.flag[lang]}, tabSwitch);

    I’ve fixed it for me with this:

    Add in ztranslate_core.php, after line 915:
    echo "<script>var zT_WP_CONTENT_URL=".json_encode(WP_CONTENT_URL).";</script>";

    And in ztranslate.js, change line 499 to:
    ce('img', {src: zT_WP_CONTENT_URL+'/'+zTranslateConfig.flag_location+zTranslateConfig.flag[lang]}, tabSwitch);

    Hi,
    I posted a very simple solution here:
    https://www.ads-software.com/support/topic/no-flags-in-edit-mode

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Buttons to select language when you add content not show the image of the flag’ is closed to new replies.