Help > Forum > General > Preventing a different language from being used

Preventing a different language from being used

You can follow the instructions below to set a specific language on the forum and prevent a different language from being used by removing the language drop-down.

Note that your forum automatically detects the user's browser language and shows the forum in the correct language. Making these changes will override that behavior and will cause the forum to always be shown in the language you specify, regardless of the user's preferred language being used in their browser. We don't recommend making these changes as it is more user-friendly to show the forum in the user's preferred language.

  1. Log in to your Website Toolbox account.
  2. Click the Integrate link in the main menu.
  3. Click the HTML link.
  4. Insert the following code into the "Forum Head Tag HTML Code".
    <style>
    #onlineUsersPopover {
    	margin-left:0px;
    }
    #language-selector {
    	display:none;
    }
    </style>
    
    <script>
    window.addEventListener("DOMContentLoaded", function(){
    	var languageCode = 'en';
    	setCookie('forumLanguage', languageCode, 2000);
    });
    </script>
    		
  5. You can change the 2-letter language code as per your requirement. For example, change 'en' to 'es' to use Spanish as the forum language. A list of country codes is available here.
  6. Save your changes.

You can also set the default language used in notification emails.


If you still need help, please contact us.