Fixing Common Issues with the GTranslate Plugin: Caching, CSS, and Element Conflicts
Content
Many WordPress users rely on the 'Translate WordPress with GTranslate' plugin to make their sites multilingual. However, some common issues can arise during setup and use. Based on community reports and solutions, this guide outlines the most frequent problems and how to resolve them.
1. The Language Selector Doesn't Appear or Settings Don't Update
The Problem: You've configured the floating language selector or changed its settings, but the changes are only visible when you are logged into your WordPress dashboard. Logged-out users see the old version or nothing at all.
Why It Happens: This is almost always a caching issue. Many caching plugins or server-level caching systems serve a stored version of your site to visitors for speed. When you are logged in as an administrator, the cache is typically bypassed, which is why you see the changes.
The Solution: Clear your website's cache after making any changes to the GTranslate settings. This includes clearing any cache from your caching plugin (e.g., LiteSpeed, W3 Total Cache) and checking if your hosting provider has a server-level cache that also needs to be purged.
2. Clickable Elements or Forms Break After Translation
The Problem: Interactive elements like booking calendars, chat inputs, or form submit buttons malfunction or disappear entirely after a user switches the site's language.
Why It Happens: The Google Translate engine sometimes modifies the HTML structure of these dynamic elements, which can break their functionality. A common sign is the appearance of extra <font> tags within the element's code.
The Solution: Prevent these specific elements from being translated. You can do this by adding the notranslate class to the wrapper element of the calendar, chat box, or button. You may need to consult your theme or specific plugin's support (e.g., BuddyBoss) to find the correct CSS class or ID to target.
3. Layout and Styling Issues (Flipped Content, Missing Backgrounds)
The Problem: After translation, the site's layout breaks. This can include content flipping to a right-to-left (RTL) direction, background images or gradients repeating incorrectly, or footers disappearing.
Why It Happens: The translation process can interfere with existing CSS rules. For example, translating to an RTL language like Arabic can sometimes incorrectly apply dir="rtl" attributes to elements. Other issues, like missing backgrounds, can be related to CSS height properties being overridden.
The Solution: Targeted CSS can often fix these visual bugs. A common fix for full-height and background issues is to add the following rule to your site's Custom CSS area:
html { height: auto !important; }
For RTL issues, you may need to identify the specific element that has gained the dir="rtl" attribute and use CSS to override it, or use the notranslate class on that section's container.
4. The Language Selector is in the Wrong Place or Looks Crunched
The Problem: The language switcher appears in a strange location, overlaps other content, or causes the entire page layout to shift.
Why It Happens: This is typically caused by a conflict with your theme's existing CSS. The theme may be applying absolute positioning, specific height rules, or other layout properties that conflict with the GTranslate widget's CSS.
The Solution: Use custom CSS to reposition and style the widget. You will need to use your browser's inspector tool to identify the correct classes to target. For example:
.gt_switcher {
position: absolute !important;
top: 40px !important;
}
Important Note: Ensure the GTranslate shortcode or widget is not accidentally placed inside another HTML element, like a link (<a> tag), as this will also cause major functionality issues.
5. Fonts Change on Translated Pages
The Problem: When your site is viewed in its translated version, the font family changes from the one used in the original language.
Why It Happens: The original font may not fully support the character set of the new language. The browser then falls back to a different font that does support it, changing the overall look.
The Solution: You can use CSS to specify a font family for specific languages. For example, to set all headings to use a sans-serif font when the site is translated to Spanish, you could add:
html[lang="es"] h1,
html[lang="es"] h2,
html[lang="es"] h3 {
font-family: sans-serif !important;
}
General Troubleshooting Tips
- Always Clear Cache: Before concluding a solution doesn't work, clear all levels of your site's cache.
- Provide a URL: When seeking help, always provide your website's URL. It is impossible to diagnose most layout and functional issues without seeing the live site.
- Check for Conflicts: Temporarily disable other plugins to see if a conflict is causing the issue.
- Use Custom CSS: The plugin's settings include a 'Custom CSS' box, which is the perfect place to add these corrective style rules.
By understanding these common issues, you can more effectively troubleshoot and enjoy a fully multilingual website with the GTranslate plugin.
Related Support Threads Support
-
Translated language calendar issue.https://wordpress.org/support/topic/translated-language-calendar-issue/
-
Problem Explanationhttps://wordpress.org/support/topic/problem-explanation/
-
Configuration error, the selected languages or location do not appear on the paghttps://wordpress.org/support/topic/configuration-error-the-selected-languages-or-location-do-not-appear-on-the-pag/
-
Fonts changed when a different language from native is selectedhttps://wordpress.org/support/topic/fonts-changed-when-a-different-language-from-native-is-selected/
-
Changing Setting does not show on my pagehttps://wordpress.org/support/topic/changing-setting-does-not-show-on-my-page/
-
Widget front page crunchedhttps://wordpress.org/support/topic/widget-front-page-crunched/
-
Selector doesn’t appear if not conectedhttps://wordpress.org/support/topic/selector-doesnt-appear-if-not-conected/
-
Various problems with Gtranslatehttps://wordpress.org/support/topic/various-problems-with-gtranslate/
-
LearnDash Focus Modehttps://wordpress.org/support/topic/learndash-focus-mode/
-
Floating language selector not showing on websitehttps://wordpress.org/support/topic/floating-language-selector-not-showing-on-website/
-
Formatting in Footer Drop-Downhttps://wordpress.org/support/topic/formatting-in-footer-drop-down/
-
Page background goes off anytime i hover/click on the Gtranslate language selecthttps://wordpress.org/support/topic/page-background-goes-off-anytime-i-hover-click-on-the-gtranslate-language-select/
-
Elementor overflow when changing language, scroll bar dissapears and margin is ahttps://wordpress.org/support/topic/elementor-overflow-when-changing-language-scroll-bar-dissapears-and-margin-is-a/
-
Accent Characters Bolded, CSS isn’t workinghttps://wordpress.org/support/topic/accent-characters-bolded-css-isnt-working/
-
Background settings do not work well.https://wordpress.org/support/topic/background-settings-do-not-work-well/
-
CSS Display problem when language flag selectedhttps://wordpress.org/support/topic/css-display-problem-when-language-flag-selected/
-
Issue with BuddyBoss Discussion Chat and Google Translate Integrationhttps://wordpress.org/support/topic/issue-with-buddyboss-discussion-chat-and-google-translate-integration-2/
-
Article will not change despite editinghttps://wordpress.org/support/topic/article-will-not-change-despite-editing/
-
Problems with the appearance of the sitehttps://wordpress.org/support/topic/problems-with-the-appearance-of-the-site/
-
Fonts changed when a different language from native is selectedhttps://wordpress.org/support/topic/fonts-changed-when-a-different-language-from-native-is-selected-2/
-
Font Color and Select Language label not workinghttps://wordpress.org/support/topic/font-color-and-select-language-label-not-working/
-
Changing languages in the Gutenberg navmenu doesn’t workhttps://wordpress.org/support/topic/changing-languages-in-the-gutenberg-navmenu-doesnt-work/
-
Skip Site title translation is not workinghttps://wordpress.org/support/topic/skip-site-title-translation-is-not-working/
-
Is it ok to hidehttps://wordpress.org/support/topic/is-it-ok-to-hide/
-
Installed OK, But Won’t Launchhttps://wordpress.org/support/topic/installed-ok-but-wont-launch/
-
Hover on the gtranslate UI causes the page background image containment to failhttps://wordpress.org/support/topic/hover-on-the-gtranslate-ui-causes-the-page-background-image-containment-to-fail/
-
Auto and Broken Image showing on dropdownhttps://wordpress.org/support/topic/auto-and-broken-image-showing-on-dropdown/
-
Unable to restore base languagehttps://wordpress.org/support/topic/unable-to-restore-base-language/
-
Submit button disappears when switching language with Gtranslate pluginhttps://wordpress.org/support/topic/submit-button-remove-when-switching-language-with-gtranslate-plugin/
-
Website breaks a bit after translationhttps://wordpress.org/support/topic/website-breaks-a-bit-after-translation/
-
Не показывается footerhttps://wordpress.org/support/topic/%d0%bd%d0%b5-%d0%bf%d0%be%d0%ba%d0%b0%d0%b7%d1%8b%d0%b2%d0%b0%d0%b5%d1%82%d1%81%d1%8f-footer/
-
Problem with clicking elements after language switchhttps://wordpress.org/support/topic/problem-with-clicking-elements-after-language-switch/
-
Images and buttons, conflict with cachinghttps://wordpress.org/support/topic/images-and-buttons-conflict-with-caching/
-
World selector wrong behaviorhttps://wordpress.org/support/topic/world-selector-wrong-behavior/
-
Problem with page background, page header background and disappearing menuhttps://wordpress.org/support/topic/problem-with-page-background-page-header-background-and-disappearing-menu/
-
Content is being flipped on pagehttps://wordpress.org/support/topic/content-is-being-flipped-on-page/
-
Safari Issues – MacOShttps://wordpress.org/support/topic/safari-issues-macos/
-
Browser Back button loses the translationhttps://wordpress.org/support/topic/browser-back-button-loses-the-translation/
-
Gtranslate Glitchhttps://wordpress.org/support/topic/gtranslate-glitch/
-
Changes Saved in red color and it doesn’t workhttps://wordpress.org/support/topic/changes-saved-in-red-color-and-it-doesnt-work/
-
Users can’t see floating selectorhttps://wordpress.org/support/topic/users-cant-see-floating-selector/
-
Problematic Pluginhttps://wordpress.org/support/topic/problematic-plugin-6/