• Resolved DiamondAmond

    (@diamondamond)


    Is there anyway I can block the plugin from translating specific elements of my site. I have an icon that is set by a character of text so when the translation is used it switches the icon. I’d like it to prevent it from translating that portion but continue to translate the rest of site.

    https://ww.wp.xz.cn/plugins/google-website-translator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Prisna

    (@prisna)

    Hello,

    yes, you can exclude some parts from being translated.

    You should add the notranslate style class to the container HTML element. Or if you want to exclude just a piece of text, you should wrap it within a HTML element with the notranslate style class, for instance:

    <span class=”notranslate”>{{ icon character }}</span>

    Plugin Author Prisna

    (@prisna)

    It’s been a week already, I’m marking this as resolved now.

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

The topic ‘Blocking translation’ is closed to new replies.