• Resolved bambupll

    (@bambupll)


    Hi,

    I am trying to get rid of images column in my site’s sitemap generated by Yoast, but unfortunately I find it really difficult. The images are not necessary there, and in my opinion it is better to actually not have them over there. Can you please help me?

    Thanks,
    Konrad

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    @bambupll The wpseo_xml_sitemap_img filter allows you to modify the sitemap and remove the images from it. The code below will remove the images when the sitemap updates. You can force an update by disabling and enabling the sitemaps

    /* Remove Images From Yoast Sitemap */
    add_filter( 'wpseo_xml_sitemap_img', '__return_false' );

    We also have more information on this and working with images in the sitemap here: Images in the XML sitemap.

    Thread Starter bambupll

    (@bambupll)

    Hi @devnihil

    Thank you for your response. The solution you suggested will remove images from the sitemap, but won’t remove the column. By applying it, there are just 0 images for each page and it is even worse signal for google.

    The idea is to remove the whole column “Images”, so it won’t be visible in the sitemap at all.

    Thanks,
    Konrad

    Plugin Support devnihil

    (@devnihil)

    @bambupll Thanks for your reply.

    To completely remove the images column from the sitemap it would require some amount of custom coding, and unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    We do have additional developer documentation related to the sitemap available here: https://developer.yoast.com/features/xml-sitemaps/overview/

    Thank you for your understanding.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove “Images” column from the sitemap’ is closed to new replies.