Support » Plugin: Polylang » Footer translation and polylang

  • Hi,

    I need to change the links in the footer according to the page language (Privacy Policy and Legal).

    Can you help me with the footer.php code please? Is it possible to add it as a Polylang option?

    Many thanks in advance.

    A.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Anthyx,

    I have the same issue. Since nobody answered here, I was wondering if you found a solution elsewhere 🙂

    Thanks,

    Oedition

    Hello,

    I used in my child theme footer.php the get_locale(), values for the languages can be found in wp/language admin screen (Locale).

    i.e.

    if (get_locale() == ‘en_GB’) {

    } else {

    }

    I think problem with this solution is if you want to use cache-program it is caching only other footer and not other.

    Add a regular menu in the footer and then create language specific menues in the backend. This is the only right way to handle this. Don’t set a hard coded link in the souce code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Footer translation and polylang’ is closed to new replies.