Code für functions.php
Füge folgenden Code ans Ende deiner functions.php
-Datei hinzu:
/**
* Control how font files are loaded and displayed by the browser.
* Set the `font-display` property to `swap`.
*/
function update_font_display() {
return 'swap'; // Or any other value.
}
add_filter( 'elementor_pro/custom_fonts/font_display', 'update_font_display' );
Mögliche Werte sind:
font-display: auto;
font-display: block;
font-display: swap;
font-display: fallback;
font-display: optional;
Weitere Informationen zur font-display
-Eigenschaft findest du z.B. in den Mozilla Web Docs.