How to prevent the import of a google font?

Support forumCategory: QuestionsHow to prevent the import of a google font?
kevdu asked 2 years ago
We recently used a checker for our website to see if there are some external imports happening. There was one result showing an import of a font via fonts.googleapis.com. After a little bit of research in our project I found the following:
In this file /wp-content/plugins/easy-appointments/css/theme/main.css the following line can be found:
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap);
Since this is kind of a privacy issue for us I wanted to ask if it is possible to prevent that the font is loaded at this spot?
1 Answers
Nikola Loncar Staff answered 2 years ago
Hi, you can comment out that line or prevent usage of CSS. There is option to not load CSS for the frontend. Best regards, Nikola
kevdu replied 2 years ago

Okay, thanks for the information. But since this file is located in the plugin itself, it will be rewritten everytime there’s an update available for it. So custom modifications will be rejected every time.