• Hi,

    I’ve used Locotranslate to create a new translation in Turkish, but when I add translations, the styling for emails is then broken.

    Is there a workaround I can use? I currently either have nice looking emails without translation, or translated ones with broken styling.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andrewsumner

    (@andrewsumner)

    OK, after a little investigating, I think I have narrowed it down to using translations AND custom CSS.

    Annoyingly, both the CSS and the translations are something I need to use.

    Hey,
    This sounds odd. Can you tell me what custom css you are adding?

    Ben

    Thread Starter andrewsumner

    (@andrewsumner)

    #body_content_inner > div:nth-child(4) > table > tfoot > tr:nth-child(4) > td > small > span {display: none ;}
    
    #body_content_inner > p:nth-child(11), #body_content_inner > p:nth-child(12),
    {display:none;}

    Idea is there’s some meta in the email that I would rather wasn’t there and this was the easiest way to remove it.

    It works fine when there are no translations via LocoTranslate, but breaks when the translations are added.

    Hey,
    nth-child creates issues with the woocommerce script that makes all the css inline. If the child is missing for example then it will fail to run the email.

    I suggest you approach the CSS differently. It likely would make more sense to unhook whatever you are trying to hide. If you can provide more information about what you are hiding I may be able to help.

    Ben

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Translation with LocoTranslate breaking styling?’ is closed to new replies.