Jump to content

WeGlot integration. I have two switches now, want to get rid of the old one

Go to solution Solved by Ziggy,

Recommended Posts

Posted (edited)

I had integrated Weglot before there was a squarespace integration. Now I got around to integrate Weglot in the "new" way. However I still have the old language switch floating around at the bottom right (see pic). Can anybody help me to get rid of that one?

Thanks!

Cheers Mike

Screenshot 2023-08-14 at 16.37.28.png

Edited by mike-zh
Posted

thanks. put into the header, did not work.

here is the complete code including what you suggested, that is currently sitting in the header section.

Any ideas?

.wg-default {
    display: none !important;
}

<link rel="alternate" hreflang="de" href="https://www.business-photography.ch">
<link rel="alternate" hreflang="en" href="https://en.business-photography.ch">

<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
    Weglot.initialize({
        api_key: 'wg_xxxxxxxxxxxxxxxxxxxxxxxx'
    });
</script>

  • Solution
Posted

If you've changed to the new method, then you shouldn't need the scripts for it to work. You should be able to just remove all of that code. 

This needed adding to Custom CSS, not the code injection:

10 minutes ago, mike-zh said:

.wg-default {
    display: none !important;
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

@mike-zh Please follow what @Ziggy suggested. Add the code I wrote to the Custom CSS panel, not the Page Header Code Injection panel.

You’ll find the Custom CSS panel in Website > Utilities > Website Tools > Custom CSS.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

  • 3 months later...
Posted
14 hours ago, fede35mm said:

Any help appreciated

Can you share your website URL? Where was it before?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.