Support » Plugin: WordPress SEO News » Invalid HTML5 attribute

  • Whenever a page/post doesn’t have an original source listed, the plugin adds this to the page:

    <link rel=”original-source” href=” ” />

    This creates an invalid href attribute in HTML5 and shouldn’t be included on a post/page without a source listed. Unless there’s another reason for this that I’m not aware of, I’d love to see this fixed. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • this error has caused over 4,000 404 errors in google webmaster because the link rel=”original-source” is an invalid link in the source code produced by Yoast SEO News plugin

    here is the fit on github

    $original_source = trim( wpseo_get_value( 'newssitemap-original', $post->ID ) );
    if ( !empty( $original_source ) ) {
    echo '' ;//issue in head, has no output, If left blank it stays blank, that is why removed.
    } else {
    $sources = explode( '|', $original_source );
    foreach ( $sources as $source )
    echo '';//issue in head, it outputs the Post Permalink instead of original source one

    Update xml-news-sitemap-class.php in wordpress-seo-new under plugins

    how to remove original-source from yoast seo wordpress news plugin

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