Tagged: entypo-fontello
-
AuthorPosts
-
February 16, 2019 at 4:42 pm #1067721
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-
This topic was modified 6 years, 8 months ago by
isee.
February 19, 2019 at 9:59 pm #1069127Hey 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,
BasilisFebruary 19, 2019 at 10:06 pm #1069129so… 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
reneFebruary 20, 2019 at 4:49 pm #1069535Hi,
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ünterFebruary 21, 2019 at 3:04 pm #1069961many thanx günter :-)
February 22, 2019 at 2:30 pm #1070344 -
This topic was modified 6 years, 8 months ago by
-
AuthorPosts
- The topic ‘Font loading…. (entypo-fontello) / SWAP’ is closed to new replies.
