Title: Browser Language Detection breaks code
Last modified: August 4, 2023

---

# Browser Language Detection breaks code

 *  Resolved [titotb](https://wordpress.org/support/users/titotb/)
 * (@titotb)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/browser-language-detection-breaks-code/)
 * I am using Browser Language Detection to translate my blog, but it breaks code,
   as it should never be translated.
 * Is there anyway to avoid it? should i unistall it?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbrowser-language-detection-breaks-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/browser-language-detection-breaks-code/#post-16949628)
 * Hi,
 * You can add notranslate class like this for your specific case: `<div class="
   enlighter-code notranslate">`
 * Please check: [How to skip translations?](https://docs.gtranslate.io/en/articles/1349930-how-to-skip-translations)
 * Thanks! 🙂
 *  Thread Starter [titotb](https://wordpress.org/support/users/titotb/)
 * (@titotb)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/browser-language-detection-breaks-code/#post-16950531)
 * Thanks Edo.
 * It works if i create previous <div class=”notranslate”>, but i doesnt if i just
   add ‘notranslate’ to the class.
 * I think i would be nice f you can include some classes to skip translation, so
   we dont have to do it every time we use it.
 * BR!
 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/browser-language-detection-breaks-code/#post-16953055)
 * Hi,
 * It should work, I do not see you have it done as I suggested.
 * You can use our paid version and in that case you will be able to use CSS selectors
   to skip translation of elements: [https://gtranslate.io/#pricing](https://gtranslate.io/#pricing)
 * Thanks! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Browser Language Detection breaks code’ is closed to new replies.

 * ![](https://ps.w.org/gtranslate/assets/icon-256x256.png?rev=2595917)
 * [Translate Wordpress with GTranslate](https://wordpress.org/plugins/gtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/gtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtranslate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [edo888](https://wordpress.org/support/users/edo888/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/browser-language-detection-breaks-code/#post-16953055)
 * Status: resolved