• Resolved manuelputmans

    (@manuelputmans)


    I use this script in the foote.php, for f.e. French language. But it does not stop the title from being translated:

    <script type=”text/javascript”>
    var myNewTag = document.getElementsById(“product_title”);
    for(var i = 0; i < myNewTag.length; i++) {
    if(myNewTag) {
    myNewTag[i].classList.add(“notranslate”);
    }
    }
    </script>

    What can I change to stop the titles from being translated….

    The page I need help with: [log in to see the link]

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

    (@edo888)

    Hi,

    Try to use document.getElementsByClassName('product_title') instead.

    I would recommend to modify your theme/plugin files and add notranslate directly in the theme:

    <h1 class="product_title entry-title">172-Daley Blind</h1>

    <h1 class="product_title entry-title notranslate">172-Daley Blind</h1>

    You can also use our paid version and use the CSS selector skip option instead. You can simply add h1.product_title into the list in your dashboard and it will not be translated: https://gtranslate.io/#pricing

    Thanks! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude Product title from translation’ is closed to new replies.