I had a quick look at the site-branding template part which handles the rendering of the custom logo on the site header. There’s a conditional check on two lines against has_custom_logo()
, along show title theme mod, which determines, if the custom logo should be rendered or not.
Internally has_custom_logo()
calls get_theme_mod( 'custom_logo' )
to figure out, if a custom logo has been set. This means, you can use the theme_mod_{$name} filter to change 1) the value of the theme mod and 2) the result of has_custom_logo()
.
As code the above would be something like this,
function prefix_disable_logo_on_front_page( $value ) {
return is_front_page() ? false : $value;
}
add_filter('theme_mod_custom_logo', 'prefix_disable_logo_on_front_page');
Related Posts:
- Inserting header logo in the bootstrap theme
- How to load google font only if custom logo is not uploaded
- Site logo is not clickable
- Need ‘logo page’ before wordpress page!
- Boldy Theme – Tweak PHP for 2nd Logo?
- different logo for home page and another logo for others page
- My WordPress doesn’t have the site logo feature? [closed]
- Logo is showing on small screen but not on screen size above 720px
- How do I make my sites logo smaller? [closed]
- theme logo setting to template file
- Load different logo on mobile
- How get the logo for my custom theme
- How to make is so the site logo can be changed easily without using the customizer?
- How to add dynamiclly logo in wordpress theme?
- Trouble Adding New Logo [closed]
- WordPress logo wont display on Avada theme after moving wordpress to new directory
- Adding a logo in html5 blank template
- Remove the logo on specific post [closed]
- Site logo not showing, no home page
- How to add CSS class to custom logo?
- How to insert a logo in the header?
- Custom ID for certain menu item?
- Multiple image logo for theme
- How to remove the WordPress logo from login and register page?
- How to change get_custom_logo() url?
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- Change logo url link
- How do I enable the customize theme page to accept svg’s?
- Replace admin bar logo
- What flex-width/height does?
- Changing Login Logo
- WordPress login page logo customization
- Display a default image for custom-logo
- Changing itemprop from logo to image on custom logo?
- Change logo on each page of University Hub theme [closed]
- Custom logo sizes for multiple logos
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to remove admin bar logo in WordPress using plugin
- No Appearance –> Header menu
- WordPress logo upload option in theme panel
- How to change page title (from a plugin) in twentytwentyone theme
- Remove link around logo
- How to add an RSS logo to my blogs header?
- Add more then one site logo – custom-logo theme support
- WordPress navbar with logo in middle [closed]
- Changing custom logo link
- Theme Options Page – User Updates Logo
- How can I use a logo in the header?
- Getting $curauth->ID to work inside a shortcode
- display dynamic WP Site logo on wp-admin using CSS
- Get Custom Logo Alt Text
- How to change logo url [closed]
- Is there a way of registering a default logo image for custom-logo?
- I want to hide header in the static homepage that I am working on [closed]
- Enable custom logo upload if logo is not in header
- Can’t resize logo in responsive theme?
- Three Questions with Twenty Eleven theme
- How to deal with logo color on dark mode?
- How to set the WordPress logo programmatically with PHP
- Need print logo without any ID & class
- Function has_custom_logo when used in Customizer
- how to add custom logo to my template
- How do I override template-tags.php in 2021 theme
- Trying to add a custom social icon to a Twenty Twenty-One child theme
- Provide logo in theme
- Unable to add logo or header [closed]
- How to unpixelate logo?
- Change homepage’s logo link [duplicate]
- How to properly set custom logo size?
- How to change the link on the logo at the menu?
- WordPress theme logo handling (Trying to use GIF as logo)
- Convert multiple logos into the_custom_logo
- How can I set the SRC URL of the custom logo image?
- How to change logo by category
- get_header_image() causes “Prioritize visible content” issue in Page Speed Insights
- How do I add a logo to my website?
- Dynamic logo/banner depending on affiliate link
- How to change the link of the wordpress logo in the admin bar?
- Change Site Logo or Menu Logo Per Page
- How to add image on top of header logo in child theme?
- On home page remove link from logo
- Twenty Ten Theme: Replace the Logo by a picture without moving the code
- Error while loading wordpress site “Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home
- How to copy page/post from one theme to another?
- Replace custom SVG icons in Twenty Twenty-One
- How to display custom logo on WordPress login page
- how to add dynamic text before and after of post title
- Add Different Class on Different Ul in twenty-twentyone theme
- twenty twenty one / background values
- Why does theme’s reset CSS have higher precedence of plugin’s CSS?
- Completely remove SVG icon load in child theme of Twenty Twenty-one theme
- Changing header logo href for the checkout page
- Change logo url based on WP user role
- How do I change several broken URLs in a several wordpress databases in the fastest way?
- SIte logo is not displaying
- Adding a second logo next to the main one in header
- Logo custom width not implementing
- Logo Keeps Changing to the Default for Transparent Settings
- Exiting Customizer alert
- How to add site logo to wordpress displayed on the top left of the site name on the chrome tab or any other web browser? [closed]