• Hi Polylang team! This might be fully 100% related but I am not sure either. Is there a way to assign the 404 page for each language so that when I translate the 404 page, then it actually shows the translated version to each person.

    So if the person is visiting the /pt site, the 404 page would be the /pt 404 error? At the moment it always defaults to the 404 of the original language regardless of the user’s chosen language…

    For reference, my page builder is Brizy Pro and they have an option to create dyanmic 404 pages but Polylang doesn’t recognise them/allow me to translate them. So I installed a plugin called Custom 404 pro. In this way, I could create a regular page on WP Dashboard > Pages (instead of WP Drashboard > Brizy > Templates > 404). So I created a regular WordPress page and assigned it as 404 using that Custom 404 Pro plugin. And then when I started setting up Polylang, I translated that page too. But if I visit on the font end for /pt and put a random slug next to /pt/xxx it takes me to the 404 page in english.

    Would you have some guidance on this?

    I’ll put the link above but I literally just started with Polylang so for the moment the translations are hidden. You can put “/pt” in front of it but I’ve hiddent the flags for the time being.

    Thank you for your support,
    Sofia

    Thank you! Sofia

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    Polylang remembers the language of the last displayed page (with a cookie). This language is used for the 404 page. If the 404 page is the first page displayed, then the default language is used (whatever the url).

    Thread Starter Sofia Pereira

    (@patiowebdesign)

    Hi Chouby

    Thank you for your reply. But what I was saying was exactly that it is not recognizing the language.
    So if I am visiting the website in Portuguese it still takes me to the english default 404 page instead of my translated version.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘404 pages’ is closed to new replies.