You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing a Guternberg post that has featured media, removing the featured media via the Featured Image metabox doesn't actually remove the featured media meta. It still partially exists, causing a blank gray area with no image to appear on the post:
Originally reported by CIJN: INN/umbrella-caribbean#87
When editing a Guternberg post that has featured media, removing the featured media via the
Featured Image
metabox doesn't actually remove the featured media meta. It still partially exists, causing a blank gray area with no image to appear on the post:The template uses
largo_hero
https://github.com/INN/largo/blob/1744bbc7ae99f501129d158c3b585cddf6b5409e/partials/content-single.php#L32
which then calls
largo_get_hero
https://github.com/INN/largo/blob/512da701664b329f2f92244bbe54880a6e146431/inc/featured-media.php#L55-L83
which then uses
largo_get_featured_hero
https://github.com/INN/largo/blob/512da701664b329f2f92244bbe54880a6e146431/inc/featured-media.php#L106-L160
which returns
Example output of
largo_get_featured_media
after removing the featured image:Workaround:
Select
Hide on Single Post display
underFeatured Media
on a post that this is happening on to make the empty gray area not appear.The text was updated successfully, but these errors were encountered: