• Resolved heveraert

    (@heveraert)


    Dear Weglot,

    Some input:
    1. I created a form with Elementor Pro
    2. Weglot: Original Lunguage = Dutch & Tranlated language = French
    3. Weglot: I have put ‘Translate email wich use wp_mail function on ON.
    4. I send the mails as HTML & used some HTML coding in the Message message:

    <!DOCTYPE html>
    <html>
    <body>
    <br>Je naam <b>[field id=”jenaam”]</b>
    <br>Je mailadres <b>[field id=”jemailadres”]</b>
    </body>
    </html>

    So far so good. Mails are translated BUT the input fields (Bolds above) are translated as well even if I excluded the ID or Class.

    This is what I did for eg. Je naam:
    In EXCLUDE BLOCKS I added the form fields e.g.: #form-field-jenaam

    BUT it did not work.

    I look forward to see the solution.
    Thanks & regards,

    Hilde,
    a weglot fan.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hi @heveraert,

    With the Weglot exclude block, you can exclude blocks form translations if you target it by CSS selector. Here, the ID is a shortcode custom attribute. Please try to change your mail template like the under example, that should solve your need :

    <!DOCTYPE html>
    <html>
    <body>
    <br>Je naam <b><span data-wg-notranslate=””>[field id=”jenaam”]<span></b>
    <br>Je mailadres <b><span data-wg-notranslate=””>[field id=”jemailadres”]<span></b>
    </body>
    </html>

    Let me know if you need help, as it would be a pleasure to help you ??

    Thread Starter heveraert

    (@heveraert)

    Dear wpr0ck,

    That did work.

    Except for a small error in your code:
    <br>Je naam <b><span data-wg-notranslate=””>[field id=”jenaam”]</span></b>

    (The “/” in the end span)

    Thank you & have a wonderful day!
    Hilde

    Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Thank you @heveraert for your feedback.

    Have a wonderful day too ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclusion Blocks – Input Fields Email & Email2 does not work’ is closed to new replies.