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]
- Visual list of all installed fonts with respective pangram phrase?
- Tallest Unicode character?
- CSS Font Border?
- How can I extract embedded fonts from a PDF as valid font files?
- How do I install a custom font on an HTML site
- What is the jasperrepots-fonts jar for and how to use it?
- Why do fonts appear jagged in Chrome?
- Set line height in Html
to make the html looks like a office word when
has different font sizes
- font-weight is not working properly?
- 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?
- Multiple image logo for theme
- How do I enable the customize theme page to accept svg’s?
- 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?
- 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?
- Remove link around logo
- 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
- Getting $curauth->ID to work inside a shortcode
- 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
- Three Questions with Twenty Eleven theme
- I can’t seem to install Font Awesome locally [closed]
- Overriding post’s font-family
- Is there a way to ensure local fonts load from CDN when CDN is enabled?
- I changed font of wordpress dashboard but it is slow!
- Unable to add logo or header [closed]
- Change homepage’s logo link [duplicate]
- How to properly set custom logo size?
- Change Size of P Tag on One Page Template [closed]
- How can I set the SRC URL of the custom logo image?
- How to change logo by category
- How to access theme fonts using custom CSS style? [closed]
- I cannot figure out where to change the font on my wordpress theme [closed]
- How would one set or override a Fallback font for characters in second language?
- Change Site Logo or Menu Logo Per Page
- Adding google fonts to WordPress theme
- Google Font wont dequeue
- @font-face in Customize Control
- Problems with font
- Including Font Awesome in a Custom 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?
- Fonts not loading in Desktop version of Safari/Firefox
- SIte logo is not displaying
- When changing theme’s font, why does font-size attribute not work? [duplicate]
- How to host Google fonts in WordPress theme locally?
- 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]
- Alt header logo and link for specific pages
- Let custom text widget use the same font as the theme
- Multiple logo’s in wordpress menu
- Change font and Colours in Menus
- How to Take Logo Out of Navigation Menu? [closed]
- How can I troubleshoot enqueue in general and loading Google fonts specifically?
- Change logo depending on domain
- How to have a specific image show up for everyone who comments?
- How can I add a google play badge to my header and footer?
- How to wrap image logo in Homepage with H1 tag
- How to change WP’s post editor’s font
- Custom logo manage by customizer and theme options
- Can I place Google Fonts at the bottom of the page? I tried but it doesn’t work
- How do i add logo in wordpress studiopress (glam theme)?
- Remove Google Fonts from parent theme within a child theme [closed]
- Should I use wp_register_style(), wp_enqueue_style, or both?
- How do I remove Google Fonts from a parent theme?
- Why i cant change my alignment?
- How to automatically load Google Fonts on pages only as they’re used?