Jump to content

how to align google translate button to the right

Recommended Posts

  • Replies 3
  • Views 2.7k
  • Created
  • Last Reply
11 hours ago, awnicks said:

Site URL: https://blackfarmerfund.org

Hi all!

Could someone help me with figuring out how to move the google translate button I added to the right side of the page? 

Add to Design > Custom CSS

/* align right google translate button */
div#google_translate_element {
    text-align: right;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

thank you so much for your speedy reply! could you help me with placing it at the right spot in this code? 

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

Link to comment
On 7/7/2021 at 9:12 PM, awnicks said:

thank you so much for your speedy reply! could you help me with placing it at the right spot in this code? 

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

Access Design > Custom CSS & paste my code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.