Switching custom HTML for different languages in the TranslatePress WordPress Plugin

PHOTO EMBED

Sat Apr 04 2020 14:15:28 GMT+0000 (UTC)

Saved by @Timefire2233 #nocode #wordpress #translateplus

[trp_language language="en_US"]

 //Add custom HTML for the English here

[/trp_language]

[trp_language language="fr_FR"]

 //Add custom HTML for the French here

[/trp_language]
content_copyCOPY

This code displays different HTML depending on the language. You can get the language codes from the Translate Press plugin settings.