Let’s create something amazing

Write to us – we will reply within 24 hours.

Postaddress

Julius-Echter-Str. 17
63863 Eschau
Germany

Write us

support@cloudworxx.us

Telefon (No Support!)

+49-32-213000322

Google Fonts im Redux Framework deaktivieren

  • By admin
  • August 4, 2023
  • 87 Views

In recent years, many websites have used Google Fonts as a popular resource for font selection to give their web pages an appealing look and feel. However, privacy concerns have arisen for some time, as Google Fonts by default sends website visitors‘ traffic to Google’s servers. As a result, website operators in Europe are increasingly looking for solutions that meet both aesthetic appearance and data protection requirements.

Many website operators also use templates for their WordPress pages that use the REDUX framework. The problem: This is delivered with Goole fonts as standard. This can usually be seen in the following code (website source code):

<script>
/* You can add more configuration options to webfontloader by previously defining the WebFontConfig with your options */
if ( typeof WebFontConfig === "undefined" ) {
WebFontConfig = new Object();
}
WebFontConfig['google'] = {families: [<!--?php echo $typography->makeGoogleWebfontString ( $this->typography ) ?-->]};
(function() {
var wf = document.createElement( 'script' );
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.3/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName( 'script' )[0];
s.parentNode.insertBefore( wf, s );
})();
</script>

To prevent the Google Fonts of the Redux Framework from loading, simply add the following code to the functions.php of your WordPress theme:

/**
* Disable Google Fonts in Redux.
*/
add_action( 'redux/loaded', function( $redux ) {
$redux->args['async_typography'] = false;
} );