Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter agencecobalt

    (@agencecobalt)

    Finally I abandoned this plugin to install another one which gives me satisfaction and which does not generate any errors in the search console

    Plugin Author JS Morisset

    (@jsmoriss)

    The forum question you mentioned explains how to disable the Schema SameAs property array and/or how to prevent WPSSO from adding a link rel shortlink meta tag – it does not explain how to prevent WordPress from adding its own shortlink meta tag.

    When the WPSSO shortlink is enabled, WPSSO creates a shortlink meta tag and prevents WordPress from adding a duplicate. When the shortlink from WPSSO is disabled, then WordPress is free to do as designed, which is to hook the ‘wp_head’ action with a ‘wp_shortlink_wp_head’ function. You can remove this WordPress action using:

    remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’ );

    Note that if your webpage contains a canonical meta tag (as all webpages should), Google should not use the shortlink in search results, etc. The shortlink meta tag is only used by social crawlers if they need to show a short URL for a shared webpage. WPSSO Premium can even replace the standard WordPress shortlink by short URLs from Bitly, Owly, etc.

    js.

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