Open Sans typeface in twentytwelve theme…
-
The twentytwelve theme includes the Open Sans typeface that is referenced somewhere in the code. The font is not stored on the server, instead it is called in a style sheet:
<link rel='stylesheet' id='twentytwelve-fonts-css' href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext' type='text/css' media='all' />
The content of the referenced style sheet is:
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzBa1RVmPjeKy21_GQJaLlJI.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxoUt79146ZFaIJxILcpzmhI.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: local('Open Sans Italic'), local('OpenSans-Italic'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff) format('woff'); } @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: local('Open Sans'), local('OpenSans'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); }
The new installation of 3.5 had been searched to remove the references to the Open Sans typeface. The search had found 38 references to the word “google” in 16 files. The match ranged from a simple google link for cookie explanation to calling js scripts to load from google.
The reference to the style sheet in question is found in the “..wp-content\themes\twentytwelve\functions.php” file, line # 139:
wp_enqueue_style( 'twentytwelve-fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null );
Can this and other related lines be removed without breaking the twentytwelve theme?
Alternatively and since the typeface is open sourced, can it be stored on the server and update the links?
TIA…
- The topic ‘Open Sans typeface in twentytwelve theme…’ is closed to new replies.