Removing calls to @font-face for unused fonts
-
I decided to change the fonts on my website from the Inter/Jost combination to instead use the System-Sans-Serif font stack. I used Appearance -> Styles -> Typography to make sure all the fonts specified for Headings / Text / Links / Buttons / Captions were all set to “System Sans-Serif”, and went through everywhere else in my site I could think of to see if anything was set to a font other than that or Default.
However, when I load the site, I still get the @font-face calls to load Inter & Jost fonts showing up in the generated pages. What could I be missing? Is there a way to eliminate these calls? When I Inspect the various elements on the page or use Firefox to show all fonts used, these fonts aren’t being used at all on the page.
@font-face{font-family:Inter;font-style:normal;font-weight:300 900;font-display:fallback;src:url('[...]/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2') format('woff2');font-stretch:normal;} @font-face{font-family:Jost;font-style:normal;font-weight:100 900;font-display:fallback;src:url('[...]/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-VariableFont_wght.woff2') format('woff2');} @font-face{font-family:Jost;font-style:italic;font-weight:100 900;font-display:fallback;src:url('[...]/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2') format('woff2');}
Thanks!
- You must be logged in to reply to this topic.