• Resolved annbrundige

    (@annbrundige)


    I just added the Google Language Translator to my sidebar, and it works very well. However, it’s hard to read the Google attribution because my pages are a dark blue. I am no code expert, and can’t see an easy way to edit the code so that it shows up better. I’d like to put Powered By and Translate into white or light blue, and perhaps put a white background for the word Google. I just don’t know where the style info for this line is located. I definitely don’t want to experiment and maybe mess up the plug in! My page is http://www.annbrundigestudio.com

    https://wordpress.org/plugins/google-language-translator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi annbrundige,

    I can see we just need some very specific CSS styling here.

    See if you like this – add below to the CSS Overrides box located in “Settings > Google Language Translator”:

    .goog-te-gadget {
        color: #d1dae5;
        letter-spacing:0;
    }
    
    .goog-logo-link {
        color: #d1dae5;
        letter-spacing:0;
    }
    
    .goog-logo-link img {
        background: #fff;
        border-radius: 5px;
        -webkit-border-radius:5px;
        -moz-border-radius:5px;
        -o-border-radius:5px;
        padding: 2px 3px 1px 3px;
        opacity: 0.6;
        margin-right: 3px;
        width:35px !important;
        height:12px !important;
    }

    The only reason this would not work, is if your theme styles would still override my code above. But I can force the styles harder if this happens, so let me know if it doesn’t look quite correct after you add this.

    Thanks! Rob

    Thread Starter annbrundige

    (@annbrundige)

    Thanks, Rob. I just pasted the code snippet into the Add CSS Styles box and saved the changes. That’s a lot better, but still not quite there. Now the multi-color word Google has a white background, which makes it show up. The words Powered By and Translate are still the default colors.
    Powered By is a dull orange, perhaps complementary to the blue. Translate is black. Is there a way to get those to a light color, or also give them a white background?

    I don’t entirely understand your code snippet, but I see you specified #d1dae5 (a light gray-blue)in two places, presumably for the text words. However, I don’t see that, so looks like the theme or something else is overriding your style code somehow.

    Ok, the styles just need to be forced a little harder – just re-copy everything below and replace entirely:

    .goog-te-gadget {
        color: #d1dae5 !important;
        letter-spacing:0;
    }
    
    .goog-logo-link {
        color: #d1dae5 !important;
        letter-spacing:0;
    }
    
    .goog-logo-link img {
        background: #fff;
        border-radius: 5px;
        -webkit-border-radius:5px;
        -moz-border-radius:5px;
        -o-border-radius:5px;
        padding: 2px 3px 1px 3px;
        opacity: 0.6;
        margin-right: 3px;
        width:35px !important;
        height:12px !important;
    }
    Thread Starter annbrundige

    (@annbrundige)

    That did the trick! Thanks very much for your help, Rob.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Translate Attribution On Dark BKGD’ is closed to new replies.