• Resolved Generosus

    (@generosus)


    Good Day!

    We’re using the JS code provided below to skip the translation of the text that appears in the browser tab (i.e., sometimes referred to as the “site title”)

    <script> document.getElementsByTagName("title")[0].setAttribute('class', 'notranslate'); </script>
    

    Our “site title” has two components: Page Title | Site Title (for example “About | My Company Name

    Question: Is there a way we can skip the translation of our Site Title and not the Page Title?

    For example, we’d like to end up with “Acerca | My Company Name” (Spanish)

    We viewed several of our page sources and noticed that the only tag we can play around with is the “title” tag as shown here.

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    The title tag is special and you cannot have more HTML tags to separate the parts in it like <title>Page Title <span class="notranslate">| Site Title</span></title>. While it would be possible for other HTML tags, it is not possible to set notranslate for it partially in free version.

    However if you use our paid option you can set a Skip Phrase “| Site Title” and it will not be translated.

    Thanks! ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to Skip Translation of “Site Title” (not) “Page Title”’ is closed to new replies.