Tricky if/else statement. Is it possible?
-
I’m using the Global Translator plugin to help translate a Spanish website into English for some users. However in the header I’m pulling in an image that has some Spanish wording, and I would like to switch that image to an English one for the English translated pages…
The regular website URL reads https://www.mysite.com/about/ and the English translated version reads https://www.mysite.com/en/about/
I’m wondering if there is some sort of if/else statement that I can write that would say “if the domain name has a /en/ in it, use this image”
Anyone have any ideas? Thanks for any help!
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Tricky if/else statement. Is it possible?’ is closed to new replies.