Remove Google Font "Mulish" from Wordpress

163 views Asked by At

I'm working on a custom theme that doesn't add any Google Fonts but I noticed that Wordpress add the font Mulish by default. For privacy reasons I want to remove it.

enter image description here

I already tried via code with no success

add_filter( 'style_loader_src', function($href) {
    if(strpos($href, "https://fonts.googleapis.com/") === false) {
        return $href;
    }
    return false;
});

and also this plugin doesn't remove it.

How can do it?

1

There are 1 answers

0
Fred K On

Find the solution myself: the Mulish font was added by the Chrome extension “Pop up blocker for Chrome™ – Poper Blocker”. Just disable it to see.

So remember that your browser extensions modify the DOM of your websites, for example just adding Google Fonts.