Home › Support › Themes Forum › corportate remove google fonts
Tagged: google fonts
- This topic has 3 replies, 3 voices, and was last updated 7 years, 8 months ago by
FlyThemes.
-
AuthorPosts
-
June 3, 2018 at 3:10 pm #10631
Anonymous
InactiveHi there,
I am currently connecting google fonts on local server (GDPR issues).
I deacivated all unused fonts and installed Roboto in Child Theme. Connecting good in the ‘body’. And yet there is still this request: http://fonts.googleapis.com/css?family=Arial%7CArial%7CArial%7CArial%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed%7CRoboto+Condensed&ver=4.9.6Seems from ‘function corporate_custom_head_codes()’. How can I reroute this to local?
Thank you
FlorianJune 4, 2018 at 4:24 am #10634FlyThemes
KeymasterHi
Would you like to add this font direct to your css so it works on local ?
Thank You
June 18, 2018 at 12:34 pm #10730Denis
ParticipantHi,
i also try to connect to the fonts locally.
First i created a Child Theme from Intensity Pro.
style.css & functions.php created, screenshot.png copied.
Worked so far.
Downloaded Roboto with the https://google-webfonts-helper.herokuapp.com/fonts.
Placed it in child-theme-folder/fonts
edited style.css like this/*
Theme Name: Intensity Pro Child
Description: Intensity Pro Child
Author: root-solution
Author URI: http://www.me.de
Template: intensity-pro
Version: 1.0
Text Domain: intensity-pro-child
*//* roboto-regular – latin */
@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 400;
src: url(‘fonts/roboto-v18-latin-regular.eot’); /* IE9 Compat Modes */
src: local(‘Roboto’), local(‘Roboto-Regular’),
url(‘fonts/roboto-v18-latin-regular.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */
url(‘fonts/roboto-v18-latin-regular.woff2’) format(‘woff2’), /* Super Modern Browsers */
url(‘fonts/roboto-v18-latin-regular.woff’) format(‘woff’), /* Modern Browsers */
url(‘fonts/roboto-v18-latin-regular.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘fonts/roboto-v18-latin-regular.svg#Roboto’) format(‘svg’); /* Legacy iOS */
}but there is also a connect in the parents function.php
<link rel=’stylesheet’ id=’intensity-gfonts-roboto-css’ href=’//fonts.googleapis.com/css?family=Roboto%3A400%2C300%2C500%2C700&ver=4.9.6′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’intensity-gfonts-ptsans-css’ href=’//fonts.googleapis.com/css?family=PT+Sans%3A400%2C700&ver=4.9.6′ type=’text/css’ media=’all’ />dunno what to change to 🙁
June 19, 2018 at 5:31 am #10742FlyThemes
KeymasterHi
If you want to try this fonts locally then you need to install the fonts on your laptop and pc and then import the font url in the style.css file.
Thank You
-
AuthorPosts
- You must be logged in to reply to this topic.