Remove a theme template XML from sitemaps
-
Hello, I have quite a few things I am having trouble removing from sitemaps. I am using the ahref audit tool. One of these is an XML file that references theme template files, all of which need to be removed from sitemaps, and none of which are editable themselves. So editing their Yoast > Advanced settings is not an option. https://focusedsketchup.com/gva_template/crowdfunding-archive-template/ is one. So i’d like to if possible just remove that sitemap from the main sitemap.
Here you can see that URL is from/gva_template-sitemap.xml
https://snipboard.io/CDkvzU.jpg
then you can see that sitemap is in thesitemap_index.html
:
https://snipboard.io/yo56SL.jpgSo how can i remove
/gva_template-sitemap.xml
from/sitemap_index.xml
? I can code so happy to use any snippets, but didn’t seem like any of these would apply: https://developer.yoast.com/features/xml-sitemaps/api/#exclude-specific-posts
Also tried this for another error for theshop
page but don’t see how i can use it for this. I guess i could use that code in that link with thepage_id
s for this and the others but if i can just exclude the sitemap from the sitemap, that would be better.
Any thoughts or advice?
Thanks,
Ben
- You must be logged in to reply to this topic.