常见

常见

framework/ReduxCore/framework.php

#1693

<script>
/* You can add more configuration options to webfontloader by previously defining the WebFontConfig with your options */
if ( typeof WebFontConfig === “undefined” ) {
WebFontConfig = new Object();
}

/* WGL CUSTOM TYPOGRAPHY FIX */
WebFontConfig[‘google’] = {families: [<?php echo $google_webfont ?>]};
/* \ WGL CUSTOM TYPOGRAPHY FIX */

(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>

分享这篇文章