Support » Themes and Templates » Language switching from one site to the other

  • Hello, I’m not sure that I am posting this request in the right forum. Perhaps someone can point me in the right direction.

    I was hired to finish a website that some other company started. They unfortunately didn’t think about browser compatibility and they have created two different sites for two different languages, french and english.

    Here is the problem that I am having. When a user clicks the “english” language button, the user should get to the equivalent english page of the one he was on the french side.

    If I would’ve designed the sites myself, I would’ve used only one site and used the wpml plugin to solve the problem. But these sites are too far along to consider an overhaul and the customer is on a tight budget.

    Is there a If .. else statement I could use or a plugin for that matter (or even a case). My php is limited but I would like to know if it is possible to ask wordpress to recognize the page ID and link to the equivalent ID page in the other language.

    the sites are http://www.eastcoastsextherapy.com and sexologiedesmaritimes.com

    Not sure if it makes sense to you guys.
    Please I need your help.
    Thanks
    Patrick

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Pafruu

    (@pafruu)

    Ok i found out about the condition is_page () but how do I use it??

    Thread Starter Pafruu

    (@pafruu)

    is this how I should do it??

    <?php (is_page( 4 ) { echo('<a href=\"http://www.eastcoastsextherapy.com/test\">English</a>');}) ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Language switching from one site to the other’ is closed to new replies.