Change default fontDisplay:fallback
-
Hello,
I’m using WP 6.7.1 with a child theme of TT5. Added Oswald font, visible in theme.json of child.
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Oswald",
"fontStyle": "normal",
"fontWeight": "400",
"src": ["/wp-content/uploads/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvgURoZAaRliE.woff2"],
"fontDisplay": "swap"
}
],
"fontFamily": "Oswald, sans-serif",
"name": "Oswald",
"slug": "oswald"I added “fontDisplay”: “swap”, but with no effect. In page source it reads:
<style class="wp-local-fonts">
@font-face{font-family:Oswald;font-style:normal;font-weight:400;font-display:fallback;src:url('https://..../wp-content/uploads/fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvgURoZAaRliE.woff2') format('woff2');}
</style>font-display keeps default value “fallback”
Do I need to change something else somewhere else?
Any help greatly appreciated
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Change default fontDisplay:fallback’ is closed to new replies.
