Customizer not updating correctly
-
Hi friends, I have a problem with my theme customizer not updating accordingly to my code.
For example, I have this code:
<?php // Display the Custom Logo
the_custom_logo();
// No Custom Logo, just display the site’s name
if (!has_custom_logo()) {
?>
“><?php bloginfo(‘name’); ?>
<?php
}
?>Which allows the user to either upload a logo, or have the default theme name shown instead.
When user uploads a logo, it removes the text, when the user choose text, it removes the logo and that works correctly
But inside customizer, when you add a logo, it’s simply shown beside the text – and when you remove the logo, both the logo and the logo text is removed, leaving it completely blank.
It correctly if you refresh the page after each change, but that’s kinda messyDoes anyone have any experience with this?
- The topic ‘Customizer not updating correctly’ is closed to new replies.