Tagged: entypo-fontello
hi guys,
is it possible to provide me a script that i can use in functions.php, or maybe you want to implement that little change:
in: …enfold/config-templatebuilder/avia-template-builder/php/font-manager-class.php
you write in line(s) 508, following:
@font-face {font-family: '{$font_name}'; font-weight: normal; font-style: normal;
src: url('{$fstring}.eot{$append}');
src: url('{$fstring}.eot{$qmark}#iefix') format('embedded-opentype'),
url('{$fstring}.woff{$append}') format('woff'),
url('{$fstring}.ttf{$append}') format('truetype'),
url('{$fstring}.svg{$append}#{$font_name}') format('svg');
} #top .avia-font-{$font_name}, body .avia-font-{$font_name}, html body [data-av_iconfont='{$font_name}']:before{ font-family: '{$font_name}'; }
";
i need to add a small addition:
font-display: swap;
to avoid time loss during rendering.
greez
rene
Hey rene,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Basilis
so… i change that from update to update, no problem.
just think about this “swap option” in general, it makes site rendering and some (I NOW USELESS) statistics on google better.
cheers
rene
Hi,
I added a filter (line 522 – before return) – you have to build the complete output or insert in $output what you like:
/**
* @since 4.5.5
* @return string
*/
$output = apply_filters( 'avf_font_manager_load_font', $output );
A pull request is in our dev repo
Best regards,
Günter
many thanx günter :-)