• Resolved florexianer

    (@florexianer)


    I translated a page and when I try to test it out and change the language the site just reloads without anything happening.

    What is causing this problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try switching to a default theme such as twentytwenty. If the issue disappears, it’s likely that your current theme is missing the lang attribute from the html tag.
    To fix this, look inside your theme for your header.php or similar file where the html tag is added. Make sure you call language_attributes() to get the lang attribute.

    Here is an example of how it should look like:
    <html <?php language_attributes(); ?>>

    Cheers,

    Thread Starter florexianer

    (@florexianer)

    I’m sorry for the long silence, but I was occupied with something else.

    I tried to do what you said however it got even worse now. I don’t know why but now when I try to translate, there comes a “404 Page Not Found” error.
    Even though the only things I have added since then where 2 plugins, which I tried turning off but the issue still persisted.

    Thread Starter florexianer

    (@florexianer)

    Nevermind i just googled and found a page from your docs, changed my permalink structure to be pretty and now its working

    Thread Starter florexianer

    (@florexianer)

    solved

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Site reloads and nothing is translated’ is closed to new replies.