I have created sitemap.xml in the website. In which, Image URL coming with cdn link.
I have change setting from admin but still is showing.
I don't want to use CDN URL in the sitemap.
How to remove product image URLs from the sitemap.xml?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI have created sitemap.xml in the website. In which, Image URL coming with cdn link.
I have change setting from admin but still is showing.
I don't want to use CDN URL in the sitemap.
How to remove product image URLs from the sitemap.xml?
You don't need any custom code to disable the image from sitemap.xml.
Magento has a setting at admin from where you can disable product image from the sitemap.
Logging at admin.
Then navigate to STORE>Configuration>Catalog>XML Sitemap>Products Options
and here you see a setting Add Images into Sitemap and Make it toNO to remove images from the sitemap.