skip to Main Content

When I search for images on my site, many images return the sitemap when clicked, as you can see here. The sitemap returns no errors in Google Search Console. Am I doing something wrong, or should I wait (for better indexing)?

I followed these instructions: https://support.google.com/webmasters/answer/178636?hl=en

3

Answers


  1. Chosen as BEST ANSWER

    It turned out I forgot the image namespace, I now use this:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" 
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd 
    http://www.google.com/schemas/sitemap-image/1.1 
    http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" 
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
      <url>
        <loc>http://www.schindlersalmeron.com/demo</loc>
        <changefreq>weekly</changefreq>
        <priority>1.0</priority>
        <image:image>
          <image:loc>http://www.schindlersalmeron.com/uploads/demo.jpg</image:loc>
          <image:caption>demo</image:caption>
        </image:image>
      </url>
    </urlset>
    

    So I changed this:

    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
    

    Into this:

    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" 
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd 
    http://www.google.com/schemas/sitemap-image/1.1 
    http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" 
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    

  2. Maybe the content of your XML isn’t properly scraped yet (because of earlier errors) and you have to wait…

    Login or Signup to reply.
  3. For anyone else experiencing this issue that has the correct XML data in their sitemap – check that google hasn’t indexed your sitemap as a standard, human-readable page. This was the case for us, our sitemap was listed as any other page would be and as a result the images really were from that page, so the visit button linking to the sitemap was technically ‘correct’.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search