Exclude Affiliate Links
-
Hello TranslatePress Support,
I’m currently experiencing a challenge with the TranslatePress plugin on my WordPress site and I’m hoping to find some guidance or solutions from the community.
Issue Description:
TranslatePress automatically adds a language prefix (like
/de/) to all URLs on my site. While this is generally useful for most pages, it’s problematic for my affiliate links. For instance, an affiliate link that should behttps://graydonschwartz.com/recommends/tesbeauty/is being changed tohttps://graydonschwartz.com/de/recommends/tesbeauty/. This alteration is not desirable for these specific links.Example of the Issue:
- Blog URL:
https://graydonschwartz.com/de/tesmat-vs-tesbeauty-welche-tesla-matratze-ist-besser/ - Affiliate Link (Currently):
https://graydonschwartz.com/de/recommends/tesbeauty/ - Affiliate Link (Preferred):
https://graydonschwartz.com/recommends/tesbeauty/
Attempts to Resolve:
I’ve tried various settings within TranslatePress and looked for plugins or code snippets that might address this issue, but so far, I haven’t had any success. The main goal is to exclude the language prefix from specific URLs (in this case, affiliate links) while keeping it functional for the rest of the site.
Seeking Suggestions:
Any advice, tips, or guidance on how to resolve this issue would be immensely appreciated. If anyone has faced a similar problem or knows how to configure TranslatePress to exclude certain URLs from having the language prefix added, your input would be invaluable.
Thank you so much for taking the time to read my post. I look forward to any suggestions or solutions you might have.
The page I need help with: [log in to see the link]
- Blog URL:
The topic ‘Exclude Affiliate Links’ is closed to new replies.