1

I'm using Polylang to support multiple languages on my site. Right now, if I'm on a post that say is in English and if I click a flag for which it has no translation (e.g. French), then I get taken to the home page in French. I don't want that. I want to stay on the current post (or better yet, be shown the post in the default polylang language) and not taken to the home page.

I've looked into setting a language attribute 'lang' => pll_default_language() in code somewhere, but I'm not really sure where to put it nor certain it would prevent the improper navigation to the home page. Does anyone know how to achieve this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.