Turn off feature in Yoast Sitemaps
-
Does anyone know how to turn off the <image:loc> feature in SEO Yoast?
Some of our images are housed externally on a subdomain blocked by Robots.txt. We don’t want this URL crawled but we want to keep images in here.
The Yoast sitemap has hundreds of errors for us in Google Search Console. We want to keep the yoast sitemap but get rid of the errors. This probably can only be achieved by removing <image:loc>
Example of how it looks now:
<url>
<loc>https://example.com/2016/02/example/</loc>
<lastmod>2014-02-19T04:12:03-05:00</lastmod>
<image:image>
<image:loc>https://example.com/images/example.jpg</image:loc>
</image:image>
<image:image>
<image:loc>https://www1.example.com/images/example.jpg</image:loc>
</image:image>
<image:image>
<image:loc>https://www1.example.com/images/example.jpg</image:loc>
</image:image>
</url>Example of how we want it to look:
<url>
<loc>https://example.com/2016/02/example/</loc>
<lastmod>2014-02-19T04:12:03-05:00</lastmod>
</url>
- The topic ‘Turn off feature in Yoast Sitemaps’ is closed to new replies.