Removing Featured Image from Gutenberg post doesn't fully remove the featured media #1845
Labels
category: gutenberg
Relating to general Gutenberg compatibility
category: images
Issues relating to images
type: bug
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: