Home » Google » We were unable to read your Sitemap – Yoast Sitemap doesn’t show styling

We were unable to read your Sitemap – Yoast Sitemap doesn’t show styling

Yoast is the most popular SEO plugin for WordPress sites. One of the built-in features it has is the automatic sitemap generation. It worked for my blog for a long time. However, all of a sudden, it stopped showing the CSS styling. It listed the links in plain text instead. And in Google Search Console, it displayed “We were unable to read your Sitemap” error.

This is what I saw when I tried to access it:

Yoast Sitemap doesn't show styling (Plain text only)

We were unable to read your Sitemap error in Google Search Console

Styling of the sitemap is for making the page readable for humans. I expected Google bots to be able to read it without issues but they couldn’t process the sitemap.

This is the error I ran into in Google Search Console when I submitted my Yoast sitemap URL:

Sitemap can be read, but has errors

We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.

Examples
Line 1

We were unable to read your Sitemap error in Google Search Console

Root Cause of the Sitemap issue

The problem was the caching. I use Hummingbird to speed up pages by caching them. Apparently, the Yoast sitemap is not compatible with Humminbird’s caching algorithm.

Depending on the caching plugin you use, you may come across this issue if you don’t implement the solution in the next section.

Solution of We were unable to read your Sitemap error

Follow the steps below to solve this issue:

  1. Go to the Settings page of your caching plugin
  2. Find the Exclusions list. For Hummingbird, it’s right on the Caching page itself
  3. Add the following file names to the Exclusions list and click Save
post-sitemap.xml
sitemap_index.xml
page-sitemap.xml
category-sitemap.xml
post_tag-sitemap2.xml
post_tag-sitemap1.xml

Note: The plugin will add a backslash before each period automatically. For example, post-sitemap.xml will look like post-sitemap\.xml after saving the changes. This is okay. No need to make more changes.

After saving the changes, clear the cache and refresh the sitemap page. The styling should work without issues.

Yoast XML Sitemap
Go to Google Search Console and remove the previous sitemaps you added. Then submit the sitemap file again.

It should successfully fetch the links this time:

Sitemap processed successfully

For generic information about Yoast XML sitemaps, check out this page.

If you are working with big XML files, one of my previous posts would be helpful: Working with big XML files

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

2 thoughts on “We were unable to read your Sitemap – Yoast Sitemap doesn’t show styling”

Leave a Comment