Support » Plugin: Sitelinks Search Box » URL wrong

  • Resolved hennell


    For sites setup with wordpress in a sub-folder, this is outputing as the URL property, which goes against the guideline for this property on the google page:

    url – This property specifies the URL of your website. It must match the canonical URL of your domain’s homepage.

    Line 42 should use:

    echo ' "url": "' . get_home_url() . '/",' . PHP_EOL;

    To get the Site Address (URL) field from the settings > general page.

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


    Hi Hennell,

    We changed this because of a support ticket that we received one year ago from Diego Betto: Search URL wrong.

    We have just reviewed the guideline and are not sure which is correct.

    Next week we will have a look at how some of the big websites have implemented this.

    Best regards.

    Plugin Author apasionados


    Hi hennell,

    We just updated the plugin. Thanks for pointing this out.

    Best regards from Spain.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URL wrong’ is closed to new replies.