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.
Related Posts:
- wp_customize_image_control default value
- Displaying theme options in css
- Selectbox in admin panel function linking to CSS
- Warning: Illegal string offset on theme options page [closed]
- Select area and checkbox data is not saving?
- Function to return true if current page has child pages
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Get author full name
- How to export/import theme customizer settings?
- Integrating WordPress to my website, while keeping my own authentication system
- Remove/unset options field from backend Settings->General?
- Site Title and Tagline in Theme Options Page
- Display posts by month
- How to preserve PHP modifications while upgrading WordPress?
- Removing jQuery migrate and working with dependencies
- is there a simple way to list every templates / php files used to generate a specific page?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- WordPress Customizer: How can you have multiple active callbacks on one control?
- Edit postmeta when user changes user role?
- Authenticating to WordPress, using my own authentication two-factor system
- How to add default images into theme customizer image control?
- How to override .htaccess with new rules without ftp or edit it manual
- How can one utilize a variable as a callback function name for add_settings_field
- WordPress Ajax Data problem
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Remove all nav menu classes ( but keep useful ones… )
- Add attribute / custom attribute to product in woocommerce
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- max_input_vars: how many am I using?
- Hide wordpress field if data is empty in post!
- Setting custom canonical urls
- Only show search results with if current date is between two dates?
- database interactions using OOP
- Customizer – Prefix Class Extension
- WordPress blog post url on category page
- Changing layout with wp_customise
- Extending the WP_Widget_Text class
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Trying to build simple deposit code that hooks into woocommerce
- user_profile_update_errors hook not executing
- Saving and Restoring a Canvas on A Individual User Basis
- Extend plugin Class through functions.php
- How to add a do_action on refreshing of WP customizer?
- Weird 404 URL Problem – domain name being placed at end of urls
- Menu jumping when calling it via PHP
- Modify custom field input data before creating a new post
- Output custom field value to post string
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Need help enqueueing webfonts
- Custom Background by Page IDs
- Change order of custom submenu link in WP Admin?
- Underscore – Self hosted fonts
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Hook called before text widget save
- How to add drag and drop functionalities to a div inside option panel
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How to create a field in customize and show that in header.php?
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- PHP if have image display image, if else text
- Php file that doesn’t recognize wordpress functions
- Set cookie for visitor
- Display movies that apear this day next
- is_user_logged_in returning nothing on custom page
- Customize field names in backend profile edit page through function.php [duplicate]
- how to add datas in taxonomy to post with wp_insert_post
- Change permalink structure specific category
- Array data not saving to specified sections. How to make seting independantly?
- I need to display posts in subcategory beside posts in main category
- Integrate otp in my custom singup form
- How do I know if the user is a customer?
- How to block specific user id in custom login form?
- I want to fusion the product columns in email table order
- Add a new view on the Woocommerce account page
- How do I add a predefined class to a custom html element?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- Redirect user role to a specific page on login in a multisite network?
- Add custom attribute to product’s HTML to woocommerce cart page
- Remove node from multisites?
- Automatically refresh page if widget is added to page?
- custom field – changing an element or background of id div – different versions not working
- How to get php file based on URL in WordPress
- Show content by using tags
- Replace Underscore (_) on Space ( )
- Why isn’t my custom Javascript showing up in my custom template?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- Use custom get results query to show posts WordPress
- How can I show only if custom field has content [closed]
- media-uploader insert into post is not inserting
- How to hide something from custom home page with php code?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- Display a list of users with avatar filterable with alphabets
- Category List in Theme Options Page
- How does one programmatically manage posts from a external php script?
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- hello can you advise how to fix the error?
- Add multiple HTML attributes to an Elementor button