Hi,
We’re detecting that particular URL as a normal WordPress page.
What you need to do is exclude that link from the translation. If you add data-no-translation attribute to that link, we should ignore it and not add /en to it.
https://translatepress.com/docs/developers/exclude-certain-text-or-element-from-being-translated/
Thread Starter
nillle
(@nillle)
How do I apply the attribute to only the link and not the text sourounding the link?
If you add the attribute to the actual link
<a href="myurl.com/something" data-no-translation>This is our PDF</a>
the link text will not be translatable.
However, everything around the link should still be translatable.
Alternatively, for that particular section, you can use the conditional shortcode to have different PDF’s for different languages:
https://translatepress.com/docs/translation-shortcode/
Thread Starter
nillle
(@nillle)
I can´t get it to work so I came up with a sulotion. I put the pdf in a subdomain pdf.gson.se and that did the trick.
Thanks for all the help.
I’m glad that worked out!
Also, I was wondering, once you will have started using TranslatePress for a while, will it be too much to ask for you to leave a review on https://ww.wp.xz.cn/support/plugin/translatepress-multilingual/reviews/ ?
One or two sentences will do it and it may help us to reach more people as well as get feedback from existing users.
Best Regards,