Issue with fonts. How to remove them ?

Posted in: Newspaper
Post count: 74

Hello,

I installed google fonts locally (palanquin) in the custom fonts part of the theme.

However, after installing this, the theme is still loading some fonts which are slowing down the loading.

https://anonymster.com/wp-content/themes/Newspaper/images/icons/newspaper.woff?12(this is loaded twice on the page)
https://anonymster.com/wp-content/themes/Newspaper/images/icons/newspaper.woff?12
https://fonts.googleapis.com/css?family&ver=7.8 (this is loaded twice on the page)
https://fonts.googleapis.com/css?family&ver=7.8

This is adding a dramatic loading time to my site and can’t find much info on the forum about where to remove this in the theme.

Thanks for your help

Post count: 20688

Hi,

The woff font that you mention is the theme’s internal font used for various icons, throughout the website. Like here for example
https://www.screencast.com/t/ba2Dg9cSpx
Removing it would lead to this result
https://www.screencast.com/t/wvyTUTSE
I have inspected your website but I do not see the fonts being called twice, in the page source. I see that you removed the default fonts from the theme
https://www.screencast.com/t/LQXhM3yWiQ
If you would like to remove the google fonts call from the theme try commenting this code in this file
https://www.screencast.com/t/9TjPpbkgm4
For me the website is loading very fast, in a matter of a few seconds.

Thanks

Post count: 74

thx for your answer

If you would like to remove the google fonts call from the theme try commenting this code in this file
https://www.screencast.com/t/9TjPpbkgm4

i do not use speed booster so far.

where shall i modify then ?

Post count: 20688

Hi,

That is not the Speedbooster that you need to modify. The required file is td_wp_booster_functions.php located as shown, in the main Theme folder->includes->wp_booster. Please check the screenshot carefully
https://www.screencast.com/t/fssgPR1v93BM

Thanks

Post count: 74

thx

can i just remove this instead of commenting ?

//used to pull fonts from google
$td_fonts_css_files = ‘://fonts.googleapis.com/css?family=’ . td_fonts::get_google_fonts_names($unique_google_fonts_ids) . td_fonts::get_google_fonts_subset_query();

/*
* add the google link for fonts used by user
* td_fonts_css_files: holds the link to fonts.googleapis.com built above
* this section will appear in the header of the source of the page
*/

Post count: 20688

Hi,

You can comment it or remove it, the result will be the same. Maybe consider making a backup before modifying files in general, in case something goes wrong.

Thanks

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