Twenty Eleven: Adding a featured image to page results in no header image
Steps to replicate
- Activate the Twenty Eleven theme.
- Choose a "Header Image" in the theme customizer.
- Create a page with no featured image, preview it and note that it displays the header image instead.
- Create a page and add a "Featured Image" to it, preview it and note that it displays no header image.
- Refresh or revisit the editor for your page with the featured image added to it, note that the featured image setting no longer displays and only spins:

Result
The theme shows no header image when we have a featured image set on to a page, but it should since the theme contains the "Featured Image Header" tag in the theme showcase, and the setting is working on the theme demo (ie, this page: https://twentyelevendemo.wordpress.com/a-page-with-a-sidebar/)
Expected
If this theme has a header image set then we should be able to override it for individual pages by using the "featured image" setting.
- User report: 12335285-hc
- Follow-up ticket: 3662868-zd
I have tested this on 2 separate WPCOM sites and it's working fine.
The customer's site seems to be the culprit. I have noticed that there is an error in the Console Log when I have tried to add a Featured Image:

@danieldudzic I am seeing that same error on the theme demo website, for the https://twentyelevendemo.wordpress.com/a-page-with-a-sidebar/ page:

The featured image currently loads on this page, but it doesn't load on the editor for that page.
On the user's website the featured image wasn't loading on the page or in the editor.
@xpurichan Thanks for reopening. I will investigate this further.
@xpurichan Thank you for your patience.
We have identified that the "spinning wheel issue" occurs when a user is trying to add a Featured Image, but at the same time, that user is not added to the site's Users list. Please make sure the user is added to the site they are trying to edit.
#3704715-zen
The featured image added to the page (acting as homepage) was causing the issue where the header image was not showing on the homepage. Removing featured image fixed that.
Hi @vajrasar ,
I'm confused - what is the issue here, again?
The header/fetured image seems to be working fine for me with Twenty Eleven.
Hi @vajrasar ,
I'm confused - what is the issue here, again?
The header/fetured image seems to be working fine for me with Twenty Eleven.
I'm sorry @danieldudzic I missed the ping on this one. IIRC when the user was setting the Featured Image on the Page (set as HomePage) using TwentyEleven themes - the already assigned header image used to hide.
Testing this on my own installation I find that if a header image is already assigned, and then if I go ahead with a featured image on the page (set as homepage) - the featured image replaces the header image.
There was a user in the forums that pointed this out as well. @danieldudzic it is explained better there how to reproduce this issue.
Here’s how it worked in 2013: https://web.archive.org/web/20131209175521/https://twentyelevendemo.wordpress.com/2011/05/04/featured-posts-in-twenty-eleven/
vs. now: https://twentyelevendemo.wordpress.com/2011/05/04/featured-posts-in-twenty-eleven/
Per this Trac ticket this was supposed to be fixed in WP 5.7. I can confirm that on my Local test site the featured image displays correctly, however, on my test WP.com simply site, it does not.
I also had the same result with WordPress 5.5.3 and Twenty Eleven 3.5.
If the featured image is narrower than 1000 pixels, the image does not show (it's an empty link).
If wider than 1000 pixels, the image is cropped to 1000 wide.
If it's 1000 pixels wide but shorter than 288, that still works.
Screenshot from my Local test site:
Direct link to image: https://d.pr/i/FV0WIY
Screenshot from my WP.com simple site:
Direct link to image: https://d.pr/i/KgSXXk
Featured image used in testing.
Another report in #3848173-zen, which led me to testing and connecting all these threads.
Confirming that this issue is still occurring based on user follow up (see 3849049-zen).
I re-tested this and I can confirm that:
A) The issue is still reproducible on WP.com B) The issue is NOT happening on a self-hosted site
To add clarity to the comments above, in the case of self-hosted sites, if the featured image size does not match, it is shown uncropped:
