Adding Google Translate to your Ning site - With NO pop ups or hover over pop ups!

Here is what I did. First embed the following Google Translate code into one of two places. I first put it on my side bar as suggested by someone else but changed it becuase on the invite page there is no side bar. Not a big deal but still if you want every single page to translate you need to put it some where other than the side bar. I have listed both directions below, pick which one works for you.

Step 1.a = Change Language Box on sidebar of website

OR

Step 1.b = Change Language Box at top of website

Directions:

Step 1.a - If you want it in the side bar this is what you do: Log into Ning. Click on My Network from your navigation bar. From the list of links on the left hand side click on Features Layout. Drag a Text Box onto your side bar. I recommend somewhere at the top so people see it right away. At the bottom click save. Now click Main from your navigation bar. Locate the text box on your side bar. Click edit on the text box. Copy and paste the following code into the box:

<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>

Click save!

Or if you would rather add it to the top of your page as I have done, skip step 1.a and do step 1.b:

Step 1.b: To add the change language box to the top of your page do the following. Log into Ning. Click on My Network from your navigation bar. From the list of links on the left hand side click on Features Layout. Toward the bottom of the page you have the option of adding Instant Ad Boxes. Click the box for above header and click save. Now click on the main link on your navigation bar. At the top of the page on the right hand side you will see an edit button. Click it. Copy and paste the following code:

<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>

Now to remove the pop up translating bar that pops up at the top of the page every time you choose a language translation and the hover over pop ups that appear when you hover your mouse over translated words, plus the Google Translate Code that they ask you to add to your CSS, you will need to do the following:

Step 2: On the very top of your ning page in the upper left hand corner there are two icons, the one on the right is your appearance tab.Click this icon. A large grey bar will drop down and open your design studio. On the left hand side there are tabs. Click on the last one which is advanced. In the white box: Add custom CSS. Copy and paste the following code:

.goog-te-banner-frame.skiptranslate {
    display: none !important;
} body { top: 0px !important; }
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

<meta name="google-translate-customization" content="ef276d42fdac9ac1-97ee542f221dbae9-g1bbca3471367fe77-25"></meta>

Click Publish. Your Done! That' s it ;0) Now your Ning Website has the language options you want.

Views: 1443

Reply to This

Replies to This Discussion

Here is the discussion on how to integrate it into Ning Mobile: http://creators.ning.com/forum/topics/ning-mobile-and-google-tranlate?

Thank you Misty!

I just removed mine

Is it possible to put "powered by" underneath the drop down box?

Jason,


I have not done it but I have seen it that way on some other sites. Let me take a look.

way cool, thank you so much for your help!

Misty,

Thanks for this. I have added it to my sites.

Did you find a way to move the "Powered by"?

RSS

Latest Activity

Steve Hanner replied to Ratheesh's discussion '2 Issues ::: Picture Uploading Limit On blogs & Last Comment on Forum'
"We are getting the same issue When uploading images to a blog after the 4th or 5th image the upload…"
7 minutes ago
DTM replied to PeruCool's discussion 'Alternatives to Ning social network'
"This is good to know, hanging on to 2.0 as long as I can!"
11 minutes ago
Julian Hughes replied to John's discussion 'Page disappeared'
"Well my current network fits well with the teenagers...i dont know how they are going to accept…"
20 minutes ago
soaringeagle replied to John's discussion 'Page disappeared'
"no its not but its a sign of what ive said all along 2.0 is falling apart at the seams they…"
25 minutes ago
Julian Hughes replied to John's discussion 'Page disappeared'
"I hope this is not a sign for us to move away from 2.0 to 3.0 yet. When is the cutoff date again to…"
33 minutes ago
soaringeagle replied to John Bizley's discussion 'A few adjustment for your video feed player in your social channels page.'
"i got my own redesign here http://ww3.dreadlockssite.com/youtube-videos "
35 minutes ago
soaringeagle replied to Julian Hughes's discussion 'Network issues'
"wait blogs are back and its fast again craziness pages disapear and reapear randombly "
54 minutes ago
soaringeagle replied to Julian Hughes's discussion 'Network issues'
"its more then slowness many pages are turning up missing i have no blogs at all!"
56 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service