Support » Plugin: Yoast SEO » Changing canonical for front page

  • Hi,

    I’m running SSL on a site. So, this plugin adds the rel=”canonical” href=””.

    What I want is to have rel=”canonical” href=””, since I don’t want Google to worry about my https. So far, I “customized” it changing this line on class-frontend.php:

    else if ( is_front_page() ) {
      $canonical = home_url( '/' );


    else if ( is_front_page() ) {
      $canonical = "";

    I guess that works, but I think a better frontend option could be added to the plugin.


  • The topic ‘Changing canonical for front page’ is closed to new replies.