wp_customize_image_control default value

I had the same problem a few minutes ago. Here is what I used in the src tag:

<?php if (get_theme_mod( 'custom_logo_image' )) : echo get_theme_mod( 'custom_logo_image'); else: echo get_template_directory_uri().'/inc/images/default_logo.png'; endif; ?>

It seemed to solve my problem. Let me know if it works for you.

Leave a Comment