Quantcast
Channel: WordPress.org Forums » [Yoast SEO] Support
Viewing all articles
Browse latest Browse all 41896

djavin on "[Plugin: WordPress SEO by Yoast] sitemap autodiscovery & validation problems"

$
0
0

I just pasted these into my functions.php but it's not triggered.

add_filter ('robots_txt','mc_add_sitemap_index');
function mc_add_sitemap_index($robots) {
$robots .= "Sitemap: " .
home_url( '/sitemap_index.xml' );
return $robots;
}

add_filter ('language_attributes','mc_language_attributes');
function mc_language_attributes ($output) {
$output .= ' version="HTML+RDFa 1.0"';
return $output;
}

(I don't use the breadcrumbs in my theme)
Could someone guide me and tell me exactly what to add? I think this code needs to be activated by some additional code? For all the noobs out there like me :) anyone?

Thanks, great stuff ThomasK!


Viewing all articles
Browse latest Browse all 41896

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>