Most of the time when I have an issue with @font-face is because my src path isn’t right. Maybe check the console to see if the call to your fonts files return a 404.
If your font-face is being called in the style.css in the root of your theme then your font path is more likely to be as follow:
url('./fonts/roboto-v30-latin-100.woff2') format('woff2')
../
means you go one back to the parent folder where ./
will look at the folder /fonts in your theme folder
@font-face being a css rule I don’t think the function you commented out would have anything to do with the fonts not loading.
Related Posts:
- How i can use font in wordpress?
- How to stop the Divi theme from loading Google fonts [closed]
- Default font in 2012?
- I cannot figure out where to change the font on my wordpress theme [closed]
- Google Fonts some font-weights not rendering properly
- How to manually remove preload fonts settings in WordPress?
- Google Font wont dequeue
- Issue with Webfont/font-face in child theme
- Problems with font
- Font not showing in Chrome, but fine in Safari
- Fonts not loading in Desktop version of Safari/Firefox
- How to host Google fonts in WordPress theme locally?
- How do I install a custom local font?
- Home icon is not showing correctly using font awesome
- How to define a custom Font family for the Site title of a wordpress site?
- Why my wordpress website does not display urdu text fully while searching for any thing on its search bars?
- How to change WP’s post editor’s font
- Can I place Google Fonts at the bottom of the page? I tried but it doesn’t work
- iPhone system font
- 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 to set String’s font size, style in Java using the Font class?
- 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?
- 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
- How to force a custom font to apply in wordpress OceanWP theme?
- Enqueue custom font file with rel=”preload”
- @font-face doesn’t work
- How to add custom fonts in WordPress site
- How to remove google font in WordPress for only single page?
- Adding custom fonts (local) to WordPress?
- How to set different font family based on text language?
- How can I allow upload of ttf or otf font files when hooking `upload_mimes` doesn’t work
- Remove Font-Awesome MaxCDN Link & Load Locally
- How to load plugin after page is loaded – pagespeed issues
- How to load google font only if custom logo is not uploaded
- 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?
- Customizer’s “Imported Fonts” – How To Use Them?
- changing font size and font of a custom message added after comment
- Font Awesome 5 Free – far working but fas is not? [closed]
- How to add custom font to TinyMCE FontSelect in WP Admin or filter the fonts available
- WordPress update messed special characters
- Add Icon to Placeholder Text in Search Form
- I can’t seem to install Font Awesome locally [closed]
- Overriding post’s font-family
- Google Fonts not loading correctly
- Font Awesome Icons only squares
- Setting font sizes in theme.json
- Change Size of P Tag on One Page Template [closed]
- How would I be able to use a font awesome icon as a user’s avatar?
- Settings API and ‘type’ => ‘font’
- How would one set or override a Fallback font for characters in second language?
- Unable to set font colour
- Adding google fonts to WordPress theme
- I have a wordpress website which uses a really weird font on Opera. What do I need to do to fix it?
- How to remove font awesome from loading in wp theme
- Theme Twenty Seventeen – Increasing Font Size for the Home Text
- How to change wordpress gutenberg editor font to match default theme font?
- Please Help me with this 404 error
- How to Fix Mangled Thai Characters
- @font-face in Customize Control
- Font Awesome icon are not loading in wordpress 5.5.1
- Including Font Awesome in a Custom Theme
- Prevent versioning for .woff (font) files
- Font .woff files loaded don’t correspond to the displayed styles [closed]
- Where my home page and font options has gone?
- When changing theme’s font, why does font-size attribute not work? [duplicate]
- How find what plugins load google Font and block it
- How to remove Google fonts from wp-admin (Roboto) added by core
- Fonts are not applying
- Fonts are parsed in one way but rendered in a different way
- Let custom text widget use the same font as the theme
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Load font awesome by content in css
- Change font and Colours in Menus
- How can I troubleshoot enqueue in general and loading Google fonts specifically?
- Font rendering problem after using include in functions file
- Custom font isn’t active on all PCs
- 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?
- How I define max cache time to Google Fonts installed on my site
- Remove Unwanted Font Files from Loading into WordPress Frontend
- Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
- Blocking Google Fonts in wordpress website
- How to self host fonts and have them show up in all the Full Site Block Editor Typography options, including global styling
- Rem font size is different in the frontend and block editor
- Adding fontAwesome to Primary Menu returns after saving the menu
- How to automatically load Google Fonts on pages only as they’re used?