Problem/Motivation
The Yoast SEO module for Drupal displays the warning:
Bad SEO score
"No images appear in this page, consider adding some as appropriate". Even when a valid <img> tag is present in the content body (or the field configured for content analysis).

Steps to reproduce
1. Use Drupal 10 or 11
2. Ensure the Yoast SEO module is installed and configured correctly.
3. Edit a content node using a WYSIWYG editor (e.g., CKEditor 5).
4. Insert an image into the body field(field_body) via the editor (ensuring the image renders as a proper <img> tag in HTML).
5. Save the content and observe the Yoast SEO analysis output.
Expected Result
Yoast should detect the image and not show the “No images appear in this page” warning.
Actual Result
Yoast incorrectly reports that no images are found, resulting in a bad SEO score, even though the image appears correctly in the rendered HTML.
Technical Details
- The
<img>tag does appear in the HTML source of the analyzed field (body, typically). - Verified that the text format allows
<img>. - Verified that the image is accessible and publicly viewable.
- The issue persists across:
- Drupal 10, 11
- Different text formats (Full HTML, Basic HTML)
- Yoast module versions 2.1.0
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2025-07-12 at 22.47.52.png | 96.58 KB | borisr |
| Screenshot 2025-05-21 103742.png | 27.34 KB | karishmaamin |
Comments
Comment #2
karishmaamin commentedComment #3
zubair-rana commentedFacing the same issue on version 2.1.0
Comment #4
zubair-rana commentedThe issue was with the widget settings in the form display.
I have to select a view mode that has all the fields, including the image, so it can analyse the contents of the page.
In my case, it was "default", which was empty, and I use "full" view display mode, which fixed the problem.
Comment #5
borisr commentedI tested this issue with the latest dev version and I'am not able to reproduce the issue.
If this issue is still relevant, can you share an example of your page content? That might help in reproducing the issue.