Jump to content

Google Translate script works in 7.0 but not 7.1

Recommended Posts

Site URL: https://newkwmc.squarespace.com

I'm migrating/rebuilding a site from 7.0 to 7.1

In the 7.0 version of the site, this code in the header works perfectly:

<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>

In the 7.1 version of this site newkwmc.squarespace.com, this script seems to do nothing.  No widget is visible.

Any suggestions?

Link to comment

Hi. The code worked, however header overlaps Google Translate button.

Don't remove above code & add this to Design > Custom CSS

header#header:not(.shrink) {
    top: 41px;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...
On 7/8/2021 at 4:09 AM, GlenwoodMedia said:

Site URL: https://newkwmc.squarespace.com

I'm migrating/rebuilding a site from 7.0 to 7.1

In the 7.0 version of the site, this code in the header works perfectly:

<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>

In the 7.1 version of this site newkwmc.squarespace.com, this script seems to do nothing.  No widget is visible.

Any suggestions?

Hi. Do you need to fix these?

Site URL – https://newkwmc.squarespace.com/

1. (Desktop – Homepage) Scroll bar at the bottom of page.

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-01-min.png

2. (Mobile – Homepage) Button Contact us overlaps logos.

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-02-min.png

3. (Mobile/Tablet – Refugee services) Buttons overlaps.

https://newkwmc.squarespace.com/refugee-services

newkwmc.squarespace.com-03-min.png

4. (All devices – Refugee services) Button not work.

https://newkwmc.squarespace.com/refugee-services

newkwmc.squarespace.com-04-min.png

5. (Tablet – Homepage) Increase image width?

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-05-min.png

6. (Tablet – Homepage) Email is cut into 2 lines.

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-06-min.png

7. (Tablet – Festival) Scroll bar at the bottom of page.

https://newkwmc.squarespace.com/festival

newkwmc.squarespace.com-07-min.png

8. (Tablet – Menu) Scroll bar at the bottom and the side of page.

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-08-min.png

9. (Tablet – Menu) Add space between button Donate and bottom of page.

https://newkwmc.squarespace.com/

newkwmc.squarespace.com-08-min.png

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.