There is a function for this purpose, called has_custom_logo()
. You can check whether the website has a custom logo or not by having this conditional:
if ( ! has_custom_logo() ) {
// Enqueue some google fonts
wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css?family=Roboto:400' );
}
Related Posts:
- Remove Site Logo from Homepage in Twenty Twentyone
- Inserting header logo in the bootstrap theme
- 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
- Visual list of all installed fonts with respective pangram phrase?
- iPhone system font
- Tallest Unicode character?
- CSS Font Border?
- What is the iOS 8 System Font?
- What is the default font of Sublime Text?
- How to set the font size in Emacs?
- How can I extract embedded fonts from a PDF as valid font files?
- How do I install a custom font on an HTML site
- How to set String’s font size, style in Java using the Font class?
- What is the jasperrepots-fonts jar for and how to use it?
- Which font is used in MS-DOS?
- Why do fonts appear jagged in Chrome?
- Failed to decode downloaded font
- How can I change the Bootstrap default font family using font from Google?
- How do I change the font color in an html table?
- Can I underline text in an Android layout?
- Set line height in Html
to make the html looks like a office word when
has different font sizes
- How to import Google Web Font in CSS file?
- font-weight is not working properly?
- Chrome’s fonts are too light to read
- Dashicons in wordpress (frontend) won’t display
- Changing code font size on wordpress
- Lucida calligraphy font not working wordpress site in android chrome
- How to force a custom font to apply in wordpress OceanWP theme?
- How to add CSS class to custom logo?
- How to insert a logo in the header?
- Custom ID for certain menu item?
- Enqueue custom font file with rel=”preload”
- 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?
- @font-face doesn’t work
- Changing Login Logo
- WordPress login page logo customization
- How to add custom fonts in WordPress site
- Display a default image for custom-logo
- How to remove google font in WordPress for only single page?
- How i can use font in wordpress?
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- 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
- Can I share predefined fonts from theme_support with a gutenberg component?
- Adding custom fonts (local) to WordPress?
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to set different font family based on text language?
- How to remove admin bar logo in WordPress using plugin
- How can I allow upload of ttf or otf font files when hooking `upload_mimes` doesn’t work
- How to stop the Divi theme from loading Google fonts [closed]
- No Appearance –> Header menu
- WordPress logo upload option in theme panel
- Remove Font-Awesome MaxCDN Link & Load Locally
- Remove link around logo
- How to add an RSS logo to my blogs header?
- Default font in 2012?
- How to load plugin after page is loaded – pagespeed issues
- Add more then one site logo – custom-logo theme support
- WordPress navbar with logo in middle [closed]
- I have no idea “How change font for elements in widget?”
- 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
- Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]
- How can I set Cache TTL for woff and woff2 font files with htaccess?
- Get Custom Logo Alt Text
- How to change logo url [closed]
- Customizer’s “Imported Fonts” – How To Use Them?
- Is there a way of registering a default logo image for custom-logo?
- changing font size and font of a custom message added after comment
- Font Awesome 5 Free – far working but fas is not? [closed]
- I want to hide header in the static homepage that I am working on [closed]
- How to add custom font to TinyMCE FontSelect in WP Admin or filter the fonts available
- Enable custom logo upload if logo is not in header