WordPress.org

Forums

Google Language Translator
[resolved] Block word or words from being translated (5 posts)

  1. chrispoulin
    Member
    Posted 12 months ago #

    Is it possible to block words from being translated on a page? We have a brand name we'd like to keep from being translated on the page.

    Thanks,

    https://wordpress.org/plugins/google-language-translator/

  2. dsgregorio
    Member
    Posted 12 months ago #

    i'm interested in this too

  3. Rob Myrick
    Member
    Plugin Author

    Posted 12 months ago #

    Yes, you will need to add a CSS class, called "notranslate" to any HTML element that you have.

    For example, a typical website body tag looks like this:

    <body class="home">

    But to prevent translation, you would change it to this:

    <body class="home notranslate">

    You can do this with any HTML element. Let me know if this helps.

    Rob

  4. chrispoulin
    Member
    Posted 12 months ago #

    This worked great. However, I used a slight variation for a single word/phrase on a page. Like this: <span class="home notranslate">Brand Name</span> This worked perfectly. Thanks!

  5. Rob Myrick
    Member
    Plugin Author

    Posted 11 months ago #

    yes, this definitely would work great - good job!

    If you need any further assistance please don't hesitate to ask

    Thanks, Rob

Reply

You must log in to post.

About this Plugin

  • Google Language Translator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic