Font swap – mobile theme

Posted in: Newspaper
Post count: 8

Hi, on our site The Good News Hub, we are seeing an error on google page speed test that “Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading.” I understand that to fix this font swap usually needs to be turned on. On looking at further details it is reporting it for the following plugins
plugins/td-composer/mobile/images/icons/mobile-theme.eot?13
plugins/td-composer/mobile/images/icons/mobile-theme.woff?13

Can you offer any advice?

Post count: 35449

Hi,
Indeed, if you are using the mobile theme plugin and you want to optimize the mobile-theme.eot fonts, then you need to add the swap manually in the theme plugin, the file that needs to be edited is this one -> wp-content\plugins\td-composer\mobile\style.css -> https://i.imgur.com/dkOzlUg.png you need to add the font-display: swap; like this -> https://i.imgur.com/flkHuFP.png
This should help you!

Post count: 8

This worked, thank you very much.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.