The base installation of Flarum comes with a linked Google Fonts stylesheet:
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,600">
In my forum there are two reasons to get rid of that:
- I don't use that font.
- I want to host my webfont in my own
/assets/fonts
folder.
Setting up a different webfont was easy, I included a similar <link rel="stylesheet" ...>
in the custom header section of the admin panel and changed the CSS to use that font. The stylesheet for Open Sans was still fetched from Google but it didn't apply, so the Open Sans font itself was not loaded.
Then I decided to host the webfont locally (be it Open Sans or any other) to prevent Google from tracking my visitors. This works fine via CSS, except that the unneeded linked Open Sans stylesheet still allows Google to be involved. I don't want that and I wonder why there is no easy way to get rid of that entry in the <head>
of the page.