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]
- 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]
- 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
- How to add an RSS logo to my blogs header?
- WordPress navbar with logo in middle [closed]
- 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?
- Enable custom logo upload if logo is not in header
- Can’t resize logo in responsive 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
- How to unpixelate logo?
- 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
- 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
- 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
- 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
- how to remove logo image hyperlink for wordpress
- How do I move my logo from the center to left (Pixgraphy theme)
- Twenty Fourteen: Shrinking header while scrolling down
- How to Take Logo Out of Navigation Menu? [closed]
- How to change a logo on a wordpress site that is part of a 7 site multisite?
- Change logo depending on domain
- Help! Need a different logo on my main page from my other pages
- Conditional Site Logo(Category Based)
- Site Icon upload and display in a theme
- How do you find the logo code on theme file or where can I find the header theme file?
- Get dimensions of logo
- Header Image instead of dynamic text
- Making a 1140px wide header logo in the twenty-ten theme?
- How can I add a google play badge to my header and footer?
- How to include a custom thumbnail with my WordPress plugin?
- controlling the showing and hiding of the website logo
- How to add Company Logo to Chosen Theme
- Why i cant change my alignment?
- I need to change the hyperlink attached to the logo on the mobile menu