corportate remove google fonts

Home Support Themes Forum corportate remove google fonts

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10631
    Anonymous
    Inactive

    Hi 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.6

    Seems from ‘function corporate_custom_head_codes()’. How can I reroute this to local?
    Thank you
    Florian

    #10634
    FlyThemes
    Keymaster

    Hi

    Would you like to add this font direct to your css so it works on local ?

    Thank You

    #10730
    Denis
    Participant

    Hi,

    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 🙁

    #10742
    FlyThemes
    Keymaster

    Hi

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.