Home Forums Real WordPress Theme Just changed website to https, and google fonts wont work correctly on REAL

This topic contains 1 reply, has 2 voices, and was last updated by  BWSM 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13014

    InternetTim
    Participant

    Hello. I’ve been changing a lot of sites to https this past week, and I noticed that my personal site, which is operating a blog with a REAL template will not now show the correct fonts on the website. I am noticing the following in when each page loads:

    (Looking at it through a debugger:)

    <link rel=’stylesheet’ id=’google-fonts-Playfair+Display-css’ href=’http://fonts.googleapis.com/css?family=Playfair+Display%3Aregular%2Citalic%2C700%2C700italic%2C900%2C900italic&ver=4.7.5′ type=’text/css’ media=’all’ />
    <link rel=’stylesheet’ id=’ux-googlefont-Playfair-css’ href=’http://fonts.googleapis.com/css?family=Playfair+Display&ver=1.0.0′ type=’text/css’ media=’screen’ />
    <link rel=’stylesheet’ id=’ux-googlefont-alike-css’ href=’http://fonts.googleapis.com/css?family=Alike&ver=1.0.0′ type=’text/css’ media=’screen’ />
    <link rel=’stylesheet’ id=’ux-googlefont-Droid-css’ href=’http://fonts.googleapis.com/css?family=Droid+Serif%3A700&ver=1.0.0′ type=’text/css’ media=’screen’ />

    Now I believe that since all of my links, pictures, css, etc… are running https; if http://fonts.googleapis.com/ would load https://fonts.googleapis.com/ it would be Okay. But for the life of me, and I have gone through most of the files of the template, I cannot find where to change it.

    Help is needed. Thanks.
    Tim

    #13016

    BWSM
    Keymaster

    Hello,

    Please change the 2 files: (change the http as https for googleapis.com)
    /functions/theme/theme-register.php:
    line:162 update to:
    wp_register_style('google-fonts-' . $family_val, 'https://fonts.googleapis.com/css?family=' . $family_val . ':' . trim($output, $separator));

    /functions/interface/interface-register.php,
    change the 4 lines: http->https :

    Regards!
    Bwsm – uiueux.comTwitterFacebook

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.