• Resolved billseng

    (@billseng)


    I’m working on a revamp to our website, and on the staged version I was using the [google-translator] shortcode in the secondary menu. It was working fine until the latest update. Now, when I set the “Show Google Toolbar?” option to “no”, it removes the language dropdown options as well as the toolbar.

    The toolbar doesn’t show on load, but if a user selects one of the language options, then it shows up at the top. It’s decidedly ugly, and it adds nothing of value to the page. I *really* don’t want that Google Toolbar – can I hide that while keeping the dropdown selector visible, like it worked prior to the update?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The update is causing issues for us as well. The culprit is in the in plugin’s /wp-content/plugins/google-language-translator/css/style.php file on line 79.

    if(get_option(‘googlelanguagetranslator_active’) == 1) {
    if(get_option(‘googlelanguagetranslator_toolbar’) == ‘Yes’){
    echo ‘#google_language_translator{color:transparent;}’;
    } elseif(get_option(‘googlelanguagetranslator_toolbar’) == ‘No’) {
    echo ‘div.skiptranslate{display:none!important;}’; <<<< this is the problem
    }
    echo ‘body{top:0px!important;}’;
    echo ‘#goog-gt-{display:none!important;}’;
    }

    This bolded line 79 is causing any div with the skiptranslate class to not display. For us, the impact is all over the website since we literally have 1000s of text bits that we do not want translated.

    Until it is fixed by the developer, you could edit this file and remark out the offending line as such:

    //echo ‘div.skiptranslate{display:none!important;}’;

    Plugin Author edo888

    (@edo888)

    @billseng If you are going to use the simple dropdown, then please use GTranslate plugin instead: https://www.ads-software.com/plugins/gtranslate/

    @alexanderdean please open a new support topic and I’ll provide you a solution.

    Thanks! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding Google Toolbar Removes the Translation Function’ is closed to new replies.