Show theme element depending on language
-
I hope someone can help me with this. My knowledge of PHP in general and Polylang in particular is somewhat limited.
Let’s assume I want to add some element in my theme but show it different depending on the language (could be basically anything). Currently I am using German and English.
So what I wanna do is basically something like this (simplified):IF LANGUAGE IS GERMAN THEN SHOW (HTML CODE)
ELSE (HTML CODE)Could anyone please translate this to proper PHP-code for me, please??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Show theme element depending on language’ is closed to new replies.