• Hello everyone,

    I’ve been using WP for many years and I never felt the need to ask for help in this forum. But this time, here I am…

    URL: http://www.traduttoreturco.com/

    My website content is in Italian but I couldn’t change the HTML Language code as it-IT.
    In other words:
    <html lang="en-US" prefix="og: http://ogp.me/ns#">
    I want to change the language of the website as it-IT instead of en-US.

    I tried to edit wp-config.php, header.php, functions.php and I couldn’t change it.

    When I change the Site Language from Settings > General to Italiano it only changes my WP user interface to Italian which I definitely don’t want to.

    All my plugins are up to date:
    Google Analytics Dashboard for WP (GADWP)
    Jetpack by WordPress.com
    MOJO Marketplace
    Official StatCounter Plugin
    WP Fastest Cache
    WPForms Lite
    Yoast SEO

    I tried to edit phpMyAdmin DB and changed WPLANG option_value as it_IT but again it only changed UI to Italian.

    The interesting thing is that if you enter my site by Https instead of Http and view page source you’ll see this excellent result:

    <html lang="it-IT">

    How may I get the same result with Http URL?

    Please advice.

    Regards,

    Ozgur

    • This topic was modified 8 years, 11 months ago by Ozgur Sendir.
    • This topic was modified 8 years, 11 months ago by Ozgur Sendir. Reason: just figured out https and http issue
Viewing 1 replies (of 1 total)
  • How are you able to see http results? All your HTTP requests correctly redirect to HTTPS, which has the correct lang attribute. If all content is accessed through HTTPS, you don’t have to worry about HTTP since no one ever will see it. Your website should be accessible using one protocol if entire website is HTTPS.

    ^V

Viewing 1 replies (of 1 total)

The topic ‘Can’t change site language’ is closed to new replies.