When you display the custom logo you can check if is set, if not you display another image. You can achieve this with the following code featured in the documentation. I adapted it to suit your needs:
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
if ( has_custom_logo() ) {
echo '<img src="'. esc_url( $logo[0] ) .'">';
} else {
echo '<img src="'. get_stylesheet_directory_uri() . '/images/header.png' .'">';
}
Related Posts:
- Add more then one site logo – custom-logo theme support
- Get Custom Logo Alt Text
- how to add custom logo to my template
- How to unpixelate logo?
- Change Site Logo or Menu Logo Per Page
- Multiple logo’s in wordpress menu
- Multiple Inputs in a Customizer Control
- Embedding a SOAP Client into a WordPress Plugin?
- Remove WordPress theme from a specific page
- How to keep a WordPress site synchronized between two servers?
- difference between esc_attr(), strip_slashes(), strip_tags()?
- Rearrange elements outputted by comment_form()
- How to build custom WP admin with custom URLs
- Custom editor field displaying HTML in Visual editor
- Looking to display non-image files in Gallery with logo specific to file type
- How to set default values for options page
- Is it ok to not a have child theme and just create a theme from scratch?
- Error upgrading from 2.9.2 to 3.0.1
- trying to modify colormag-fr_FR.po
- Programmatically add a custom page/path/url/route to WordPress
- Force pdf download not working when include blog-header.php
- How do I remove the eye icon that shows visibility on login screen and reset password screen
- Passing page url into a custom field via the Press-This bookmarklet
- Using transients to store captchas
- How to extend nav-menu-item-control data in Appearance > Customize?
- Recommend an open source, template driven website builder UI that produces a working WordPress site [closed]
- Video to stretch across the entire homepage [closed]
- How can I allow access to multiple users, using the same login, at the same time?
- Does all editing of WordPress occur within the dashboard, or can we use our own text editor?
- Is it possible to have one page with multiple items, or 2 blogs on a site?
- Function to allow “Anyone can register”?
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- TwentyFifteen: How can it show a different color on every post page?
- How Can I Move Data From Form 1 To Form 2
- wp_query get post custom taxonomy in search.php
- Custom login with external provider iframe and data object
- get author in blog posts?
- Users can only view their content from the front end
- Localization: I want the backend: english and frontend in defined language
- Theme compression/ minifying or W3 Total Cache – which should I use? [closed]
- How to remove all the items under “Personal Options” on user profile page?
- Extend WordPress Core Classes in OOP Theme?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Need ‘logo page’ before wordpress page!
- User bar above logotipo?
- Create a url structure for my blogs based on categories and sub-cats
- Can I integrate wordpress with my current website so I can utilize the wordpress plugins?
- Widget title markup in register_sidebar
- Sticky menu for WP custom menubars
- What is theme-editor.tmp?
- More tag – how do I remove preceding ?
- Salesforce lead tracking with contact forms plugins [closed]
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- How can style text like this in wordpress
- Add or Create Custom Structure Tags to Permalink
- Setup database structure with books, authors, languages etc. for publishing house [closed]
- Dynamically Filtering Posts by Data Points – Any Pointers?
- Woocommerce custom checkout form
- Remove welcome panel from contact form 7 page [closed]
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- WordPress custom dropdown listings
- Custom Tags Archive – permalinks not working
- Help customising admin bar, removing buddypress links from dropdown
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- WordPress in a Subdirectory
- how or where wordress collect unlogged user session
- Customizing woocommerce product page
- javascript file not working in a plugin template file
- If Term Name Exists, Append a Unique ID to Slug
- Woocommerce custom “My Account” Tab – Add Save button
- WordPress Using Zip code customer shop find without woocommerce plugin
- How can I display both LTR and RTL language texts on the same page?
- New Page/Post Screen Opens an Existing Post
- how can custom permalink structure use for specify custom post type
- Add button to My Sites dashboard page (multisite)?
- Cannot go to next page on phone but can on computer
- Embedded Options in a Custom Metabox
- A specific menu inside a page, load different contents without reloading it, under the same link
- How to hide or remove a custom widget area when empty
- Dockerized WordPress is having Nginx Proxy Issues
- Create single{custom}.php with data in table out of wp_posts
- Highlight specific user with custom field value
- custom loop issue
- How to define a static Home page
- let users add multiple divs in static page
- Best way to replace image url with source
- Multiple Taxonomies Using Custom SQL Query
- Changing starting number of User ID
- Logged in only custom page
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- Search results load individual post in slide out div
- Problem Locating and Changing Alt Attribute Of Link
- Pull certain WordPress posts on custom CMS instead and 301 wordpress to it?
- Show Site Name on WP login screen
- Adding css and js to a blank page created with custom template
- Create users via PHP
- Show post content in two different places without redirect
- Applying my own css classes in wp_menus 3?
- Conditional tag
- Background image no more visible in the preview