• Resolved RogerM

    (@imnewbie)


    I want to create a separate sitemap for documents (PDFs mostly). They are already indexed by Google but not submitted to any sitemap on GSC and I want to solve this.

    I am aware I can do this automatically by inserting the PDF to a page or post but this is NOT the case with this particular client I am working on.

    Either way, I want to know if there′s a way to use the FREE version of Yoast to add a custom Sitemap?

    Can I just create the sitemap and upload it to the root folder of my site? Will Yoast pick it up?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter RogerM

    (@imnewbie)

    Doing some research I found this on Github…

    https://gist.github.com/amboutwe/8cfb7a3d8f05e580867341d4ff84141d

    But I can′t find the yoast_seo_sitemap_add_external.php anywhere inside the plugin editor tab.

    I would like to also add the custom sitemap inside the /sitemap_index.xml file…is this possible?

    Thoughts?

    Sa?a

    (@stodorovic)

    The file yoast_seo_sitemap_add_external.php is custom file and it doesn’t exist in regular installation. You can use the filter wpseo_sitemap_index (as in code snippet on github) inside functions.php or somewhere else to include custom sitemap into main sitemap index.

    Thread Starter RogerM

    (@imnewbie)

    I have access to the site functions.php file so adding the code snippet from Github there won′t be an issue.

    Now, will Yoast pick up that custom sitemap? Will that custom Sitemap be added inside the site /sitemap_index.xml file?

    These are now my two main concerns.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    By default, Yoast SEO won’t include the external sitemap to the sitemap index. You’ll need to manually add an external sitemap to the sitemap index by using the wpseo_sitemap_index filter. You can find more information about this here https://yoast.com/help/add-external-sitemap-to-index/

    We are going ahead and mark this topic as resolved due to inactivity. If you require any further assistance, feel free to create a new topic. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add a Custom Sitemap to Yoast’ is closed to new replies.