I'm attempting to integrate the custom-logo
functionality introduced in 4.5 and I'm running into some issues with the Customizer interface.
I'm checking has_custom_logo
and, if it's false, I'm providing a text version of the site name and description as a fallback. It works perfectly fine when you add a custom logo. However, when you "Remove" it, it appears has_custom_logo
still returns true
.
Example:
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
the_custom_logo();
} else {
echo 'Fallback';
}
Anyone else had any luck with something similar?