Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Which multilingual plugin are you using? Most of them already do that for you. Slim SEO hasn’t had an option for changing canonical URL yet.

    Thread Starter vovremya

    (@vovremya)

    I use the Polylang plugin. The problem is only on the homepage.
    I removed the function in your plugin in the CanonicalUrl.php file

    private function get_home_value() {
    return home_url( ‘/’ );
    }

    Now

    site.com – link rel=”canonical” href=site.com/
    site.com/es/ – link rel=”canonical” href=site.com/
    site.com/de/ – link rel=”canonical” href=site.com/

    Need

    site.com/ – link rel=”canonical” href=site.com/
    site.com/es/ – link rel=”canonical” href=site.com/es/
    site.com/de/ – link rel=”canonical” href=site.com/de/

    • This reply was modified 1 year, 8 months ago by vovremya.
    Thread Starter vovremya

    (@vovremya)

    How to make correct canonical homepage and pagination pages for multilingual site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Canonical for the home page of a multilingual site’ is closed to new replies.