mike-zh Posted August 14, 2023 Posted August 14, 2023 (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 Edited August 14, 2023 by mike-zh
Lesum Posted August 14, 2023 Posted August 14, 2023 @mike-zh Here's a code snippet to try: .wg-default { display: none !important; } 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?
mike-zh Posted August 14, 2023 Author Posted August 14, 2023 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 Ziggy Posted August 14, 2023 Solution Posted August 14, 2023 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; } tuanphan and mike-zh 2 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?
Lesum Posted August 14, 2023 Posted August 14, 2023 @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. mike-zh and Ziggy 2 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?
fede35mm Posted November 20, 2023 Posted November 20, 2023 @Ziggy Is there a way to keep it as it was before at the bottom? I do not like the button being forced in the menu. Any help appreciated
Ziggy Posted November 21, 2023 Posted November 21, 2023 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment