New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Google's webfont.js #3653
Comments
The simplest approach is to remove all Google Fonts from your typography fields (use default fields) and it should be gone. ;) Alternatively, you can find the author's typography fields and set a new arg as google => false. Best of luck! |
@dovy I don't really like this solution, because it will cause the stylesheets of the theme / plugin will not include the font-family declarations, anymore. It's better to do: /**
* Disable Google Fonts in Redux.
*/
add_action( 'redux/loaded', function( $redux ) {
$redux->args['disable_google_fonts_link'] = true;
} ); Now the font-family definitions of the theme / plugin stylesheets won't be removed and I simply have to store the fonts and the CSS file from gstatic.com by myself and everything will work fine. |
@martin-braun Where to put this code? I broke whole site. |
@josip-matic Put it in the functions.php of your child theme. |
It broke because the code was not complete. It forgot the
|
@jmslbam Thanks, yes, copy paste failure. Edited and fixed my comment for reference. |
I read your statement, but the Theme Author couldn't help me.
I simply want to remove the following part in the source code of my website:
What is the best way to do that? Is there any action hook I can use? I don't want connections to google servers on my website.
Best Regards
Marius
The text was updated successfully, but these errors were encountered: