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:
- Displaying theme options in css
- Selectbox in admin panel function linking to CSS
- Warning: Illegal string offset on theme options page [closed]
- wp_customize_image_control default value
- Select area and checkbox data is not saving?
- Cleaning up WordPress to improve performance?
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Remove option to allow trackbacks/pingbacks from post page options
- How to remove hardcoded characters from playlists?
- Creating custom Woocommerce attribute taxonomies from a plugin
- Load post content into iframe
- Editor role cannot save custom theme options
- Custom post type column which compares dates?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Site Title and Tagline in Pagelines DMS Options Panel
- Limit the Excerpt field in WP-Admin in words
- How to create different menu’s for not logged in visitors and for logged in members?
- Search and Replace in database: How to replace data in SQL dump file on Windows?
- delete an array element when its date expires
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
- Wrap First Character after in a tag
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Putting PHP variables into javascript [duplicate]
- Random Default Avatar Function
- Change the site tagline (or similar) based on current page
- Customizer: Output default value in Customizer CSS
- create a select input with menus created on a custom options page
- Taxonomy linked to pages
- Theme Options Page – User Updates Logo
- Converting HTML Template to WordPress Theme
- Can I install/embed WordPress on a ‘single page’?
- How to pick the default selected value in wordpress dropdown?
- WordPress admin pointers tour bug?
- Customize position of social icons in upme plugin [closed]
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Media Upload , file name changed automatically
- Replace shortcode in substring
- Custom posts in different columns style
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Advanced Custom Fields not displaying
- What exactly do this function declared into functions.php file of a WP theme?
- WordPress Options Page Theory Question
- Exclude posts with specific metadata from search?
- Add data-id attribute to child page links
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- customize wordpress database error page
- Display Youtube Time Automate from Key
- Link blogname and blogdescription to the Options Framework
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Where is the PHP code generating an element?
- Basic wpdb update question
- Ajax search shows all results when user empties input?
- List post by title length
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- Custom Registration username_exists / email_exists
- Need help with pagination
- How do i wrap woocomerce attribute in list?
- Is it possible to add a custom page to a free WordPress site? [closed]
- save metabox with new values _wp_page_template
- Deactivate a plugin on wp version
- pagination broken – clicking next displays “page not found”
- Editor capabilities – admin_init
- WP insert post Redirect after function has executed
- Create condition for Author bio Social Links
- Illegal string offset in PHP function in via Theme Customizer
- How can I add diffrent editable text fields?
- Woocommerce template file outputting tags
- Featured image in menu wordpres
- Trying to update Woocommerce meta values
- If Statement is Ignored?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Need help transforming echo to return for use with shortcode
- Noob question: want to remove the “site identity” logo for specific part of website only
- Create Schema in WordPress with PHP
- Redirect after login depending on the URL
- Search only for posts with specific metadata?
- Real time notification on user profile after new comment
- How to add text before posts
- Add two or multiple functions in WordPress Post or Page
- How to associate dynamic PHP page for chosen WordPress tag?
- Only display notification on single post
- WordPress error on my website
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Best way to define a database with product codes and back-end support?
- WordPress Setting page can not be saved by html radio
- Widget header unique classes
- why is this content-template not showing any of my blog-entries?
- How to get the count for each taxonomy term
- How to add button to top of theme customizer?
- How can I add more code to this?
- Save Option on Database
- Edit the Publish Widget Options
- Options.php loop won’t show!
- New to WordPress & Freelancing [closed]