• Resolved TheStingPilot

    (@thestingpilot)


    Hello,

    I am using Transposh to translate the content. Some translations are weird, and you can skip the translation by using the HTML code:
    <span class="no_translate"> This text is not translated </span>

    Now, I am wondering if I can add the class no_translate to the product-name so that the name is not translated by default. That will avoid some confusion.

    So <div class="product-name">Whatever the name is</div>
    becomes
    <div class="product-name no_translate">Whatever the name is</div> automatically.

    Your help is appreciated and with kind regards,
    Willem-Jan

    • This topic was modified 2 years, 3 months ago by TheStingPilot.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ndre

    (@ndre)

    Hi @thestingpilot,

    You can create custom templates from /templates/template-parts/product-page/product-name.php.

    Please see how to create a custom product page template.

    • This reply was modified 2 years, 3 months ago by ndre.
    Thread Starter TheStingPilot

    (@thestingpilot)

    Hello,

    I am sorry, I have done what you asked me to do, but the product name is still translated.

    This screenshot shows what I would like to have.

    This screenprint shows how I implemented product-name.php and its modification. It says the h1 but h1 is something different.

    Your feedback is appreciated.

    Thank you.
    Willem-Jan

    Thread Starter TheStingPilot

    (@thestingpilot)

    Hello,

    I have chosen to use another translate plugin. That one works out-of-the-box.
    This item has been marked as resolved.

    With kind regards,
    Willem-Jan

    Plugin Author ndre

    (@ndre)

    Hi @thestingpilot,

    Thank you for the update.

    If you ever need it in the future:

    You are using the Classic List there. So the product name for the Classic List is located in /templates/template-parts/product-listing/classic-list.php.

    You should copy the template file to your child-theme ‘implecode’ folder as you did with the other one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make sure an entry is not translated by Transposh’ is closed to new replies.